Skip to content

FB_DOS


Intrinsic define set by the compiler

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.

Examples

start GeSHi

vb
#IFDEF __FB_DOS__
  ' ... instructions only for DOS ...
  ' ... INT 0x31
#ELSE
  ' ... instructions not for DOS ...
#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