{{fbdoc item="title" value="__FB_GUI__"}}---- Intrinsic define (macro value) set by the compiler {{fbdoc item="syntax"}}## ""__FB_GUI__"" ## {{fbdoc item="desc"}} ##""__FB_GUI__""## indicates whether GUI subsystem mode is active at the current point in compilation. Returns non-zero (-1) if the executable subsystem option ##-s gui## was specified, or if ##[[KeyPgPpPragma|#pragma gui]]## is active. Returns zero (0) otherwise. {{fbdoc item="ex"}} {{fbdoc item="filename" value="examples/manual/defines/fbgui.bas"}}%%(freebasic) #if __FB_GUI__ <> 0 #print Executable subsystem: gui #else #print Executable subsystem: console #endif %% {{fbdoc item="ver"}} - Since fbc 1.06.0 {{fbdoc item="target"}} - On Windows and Cygwin, this controls the linker subsystem. - Other targets may use the same mode value for target-specific startup or runtime behavior. {{fbdoc item="diff"}} - New to ""FreeBASIC"" {{fbdoc item="see"}} - [[CompilerOpts|Compiler Option: -s]] - ##[[KeyPgPpPragma|#pragma]]## {{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}