Skip to content

Fb Option Escape

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

Home › Intrinsic Defines › FB_OPTION_ESCAPE

FB_OPTION_ESCAPE

Intrinsic define (macro value) set by the compiler

Syntax

__FB_OPTION_ESCAPE__

Description

Indicates if by default, string literals are processed for escape characters when not explicitly prefixed with the $ Operator for non-escaped strings, or the ! Operator for escaped strings.

The default method for processing string literals is set by usage of the -lang command line option during compilation or usage of Option Escape in the source file.

__FB_OPTION_ESCAPE__ 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

Examples

#if( __FB_OPTION_ESCAPE__ <> 0 )

  #error Option Escape must Not be used With This include file

#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