FB_MAIN
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdFBMain
- Last revised: 2016-03-12
Intrinsic define set by the compiler
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.
Examples
start GeSHi
vb
#ifdef __FB_MAIN__
#print Compiling the main module
#else
#print Compiling an additional module
#endifend GeSHi
Differences from QB
- New to FreeBASIC
See also
- Compiler Option: -m
#ifdef#ifndef
Back to DocToc