Skip to content

Fb Option Explicit

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

Home › Intrinsic Defines › FB_OPTION_EXPLICIT

FB_OPTION_EXPLICIT

Intrinsic define (macro value) set by the compiler

Syntax

__FB_OPTION_EXPLICIT__

Description

__FB_OPTION_EXPLICIT__ indicates if Option Explicit has been used previously in the source.

Returns zero (0) if the option has not been set. Returns non-zero (-1) if the option has been set.

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

#if( __FB_OPTION_EXPLICIT__ = 0 )

  #error Option Explicit must used With This module

#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