Intrinsic define (macro value) set by the compiler
Syntax
__FB_LANG__
Description
__FB_LANG__ indicates which language compatibility option was set using the
-lang option as specified on the compiler command line at the time of compilation of a module.
Returns a lower case string with one of the following values:
value | description |
''fb'' | FreeBASIC compatibility (default) |
''qb'' | qbasic compatibility |
''fblite'' | FreeBASIC language compatibility, with a more QBASIC-compatible coding style |
''deprecated'' | previous fbc version compatibility |
__FB_LANG__ is always defined.
Example
'' Set option explicit always on
#ifdef __FB_LANG__
#if __FB_LANG__ <> "fb"
Option Explicit
#endif
#else
'' Older version - before lang fb
Option Explicit
#endif
Differences from QB
See also