Help Center
Help CenterFreeBASIC

__FB_DOS__keyword

Intrinsic define set by the compiler

Intrinsic Defineskeyworddocumented

Syntax

__FB_DOS__

Description


Define without a value created at compile time if compiling for the DOS target. Default in the DOS hosted version, or active when the -target dos command line option is used. It can be used to compile parts of the program only if the target is DOS. Note: the DOS hosted version cannot compile to other targets than DOS by now.

Remarks

Differences from QB


  • New to FreeBASIC

See also


Example


#ifdef __FB_DOS__

  ' ... instructions only for DOS ...

  ' ... INT 0x31

#else

  ' ... instructions not for DOS ...

#endif 



Reference

  • Documented in KeyPgDdfbdos.html