__FB_JS__
 

Syntax

__FB_JS__

Description

Define without a value created at compile time when the JavaScript target
is being used. This is normally selected by fbc-js or by the
-target js-asmjs command line option. It can be used to compile parts
of a program only for the browser/Emscripten target.

The JavaScript target also defines __FB_LINUX__ for
compatibility with Emscripten's POSIX-like runtime environment.

Example

#ifdef __FB_JS__
    Print "JavaScript target"
#endif



See also