FB_GUI
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdfbgui
- Last revised: 2021-10-11
Intrinsic define (macro value) set by the compiler
Syntax
` FB_GUI
`
Description
__FB_GUI__ indicates if the executable subsystem option '-s gui' was specified on the command line at the time of compilation.
Returns non-zero (-1) if the executable subsystem option '-s gui' was specified. Returns zero (0) otherwise (no executable subsystem option specified, or executable subsystem option '-s console' specified).
Examples
start GeSHi
vb
#if __FB_GUI__ <> 0
#print Executable subsystem: gui
#else
#print Executable subsystem: console
#endifend GeSHi
Version
- Since fbc 1.06.0
Platform Differences
- Supported on Windows and Cygwin only.
Differences from QB
- New to FreeBASIC
See also
Back to DocToc