Skip to content
Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Intrinsic Defines › FB_JS

FB_JS

Intrinsic define set by the compiler

Syntax

__FB_JS__

Description

Define without a value created at compile time in the emscripten version of the compiler, when the -target js-asmjs command line option is used. It can be used to compile parts of the program only for a such target.

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

#ifdef __FB_JS__

  '...instructions only for emscripten target...

#else

  '...instructions not for emscripten target...

#endif

Category: Intrinsic Defines
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally