Skip to content
Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Intrinsic Defines › FB_GUI

FB_GUI

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).

Remarks

Platform Differences

  • Supported on Windows and Cygwin only.

Differences from QB

  • New to FreeBASIC

See also

Examples

#if __FB_GUI__ <> 0

        #print Executable subsystem: gui

#else

        #print Executable subsystem: console

#endif

Category: Intrinsic Defines
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally