FB_DOS
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdfbdos
- Last revised: 2016-02-10
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 ...
#ENDIFend GeSHi
Differences from QB
- New to FreeBASIC
See also
__FB_LINUX____FB_WIN32____FB_PCOS__DOS related FAQ- Compiler Option: -target
Back to DocToc