Wiki source for KeyPgDdfbdos


Show raw source

{{fbdoc item="title" value="__FB_DOS__"}}----
Intrinsic define set by the compiler

{{fbdoc item="syntax"}}##
""__FB_DOS__""
##
{{fbdoc item="desc"}}
Define without a value created at compile time if compiling for the DOS target. Default in the DOS hosted version, or active when the //[[CompilerOpttarget|-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.

{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/defines/fbdos.bas"}}%%(freebasic)
#IFDEF __FB_DOS__
' ... instructions only for DOS ...
' ... INT 0x31
#ELSE
' ... instructions not for DOS ...
#ENDIF
%%

{{fbdoc item="diff"}}
- New to ""FreeBASIC""

{{fbdoc item="see"}}
- ##[[KeyPgDdfblinux|__FB_LINUX__]]##
- ##[[KeyPgDdfbwin32|__FB_WIN32__]]##
- ##[[KeyPgDdfbpcos|__FB_PCOS__]]##
- ##[[FaqDOS|DOS related FAQ]]##
- [[CompilerOpttarget|Compiler Option: -target]]

{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode