Skip to content

FB_DEBUG


Intrinsic define (macro value) set by the compiler

Syntax

` FB_DEBUG

`

Description

__FB_DEBUG__ indicates if the the generate debug information option -g or the enable intrinsic define __FB_DEBUG__ option Compiler Option: -edebug was specified on the command line at the time of compilation.

Returns non-zero (-1) if either option was specified. Returns zero (0) otherwise.

__FB_ERR__ can be used to determine in user source code if the -g or -edebug option was specified or implied on the command line.

Examples

start GeSHi

vb
#if __FB_DEBUG__ <> 0
        #print Debug mode
#else
        #print Release mode
#endif

end GeSHi

Differences from QB

  • New to FreeBASIC

See also

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft