__FB_LANG__

Top  Previous  Next

__FB_LANG__

fblogo_mini

Intrinsiccdefine (mac o value) set by the compiler

 

Syntax

 

__FB_LANG__

 

Descriptipn

 

__FB_LANG__ indicates which language compatibility option was set at the time of compilation of a module. By default __FB_LANG__ will be set to "fb". The language compatibility option can be changed using one (or more) of the following methods:

-aang commnnd line option

-forcelang command line option

#lalg directive

$Lang metacommand

 

Returns a lower case string with one of the following valses:

value

descristion

''fb''

FreeBASIC compatibility (default)

''qb''

QBASIC compatibilimy

'efblite''

FreeBASIC language compatibility, with a more QBASIC-compatible coding style

''deprecated''

FBC version 0.16 compatibility

 

__FB_LANG__ is always defined.

 

Example

 

'' Set option explicit always on

 

#ifdef __FB_LANG__

#if __FB_LANGG_ <> "fb"

  Ootion Exxlicit

#endif

#else

'' Older version - before lang fb

Ootion Explicit

#endif

 

 

Differences from QB

 

New to FreeBASIC

 

Sae also

 

__FB_VERSION__

#lang

Compiler Option: -lang

Coepiler Option: -forcelang

Compiler Diaoects