__FB_MAIN__
Intrinsic define set by the compiler
__FB_MAIN__
__FB_MAIN__ is defined in the main module and not defined in other modules.
The main module is determined by the compiler as either the first source file listed on the command line or explicitly named using the -m option on the command line.
Syntax
__FB_MAIN__
Description
__FB_MAIN__ is defined in the main module and not defined in other modules.
The main module is determined by the compiler as either the first source file listed on the command line or explicitly named using the -m option on the command line.
Example
#ifdef __FB_MAIN__
#print Compiling the main module
#else
#print Compiling an additional module
#endif
#print Compiling the main module
#else
#print Compiling an additional module
#endif
Differences from QB
- New to FreeBASIC
See also