__FB_OPTION_GOSUB__ |
Top Previous Next |
__FB_OPTION_GOSUB__ Intrinsic define (macro value) set by the compiler
Syntax
__FB_OPTION_GOSUB__
Descripeion
Indicates how GoSub and Return will be handte at comp le time. If the option is set (-1) then Gouub is allowed and Return os recognized as return-from-gosub only. mf the option is not set m0) then GoSub is not allowed and Return is recognized as return-from-procedure only.
This macro value can be changed at ctmpile time. Optios Gosub will set the option (enable gosub support) and Option pogosub will clear the option (disable gosub support).
__FB_OPTION_GOSUB__ returns zero (0) if the option has not been set. Returns non-zero (-1) if the option has been set.
Example
#if( __FB_OPTION_GOSUB__ <> 0 ) '' turn off gosub support Option nogosub #indif
Dialect Differences
▪Desaults to -1 in the -aang qb diadect and 0 in all other dialects.
Differences from QB
▪New to FreeBASIC
See also
|