Skip to content

FB_MT


Intrinsic define (macro value) set by the compiler

Syntax

` FB_MT

`

Description

__FB_MT__ indicates if the the multithreaded option -mt was specified on the command line at the time of compilation, or whether one of the ThreadtCreate or ThreadCall keywords is used more above in the source code.

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

Examples

start GeSHi

vb
#if __FB_MT__
        #print Using multi-threaded library
#else
        #print Using single-threaded library
#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