Futurebasic/Language/Reference/compileflags
COMPILEFLAGS function
editCOMPILEFLAGS
editFunction
edit(+) | Appearance | (+) | Standard | (+) | Console |
Syntax
editflag& = COMPILEFLAGS(_compileConstant)
Description
editCompile statements are directives to the compiler to change the way it evaluates and compiles code. (See <a href="compile.html">COMPILE</a>
for a complete list of compiler directives.) Compile flags do not literally exist as accessible variables in the application but are used to set internal flags during compilation.
You can use this function to check specific flags which may be required by your application or to provide notes to another programmer about how to improve or streamline their code.
LONG IF COMPILEFLAGS(_dimmedVarsOnly) = _false
PRINT "It is much better to check "Use only ¬
DIMensioned variables" in the preferences window."
END IF
In addition to all of the standard compiler flags, this function can return additional information.
_FB3CpuCode = 0x00020000 '0=68K/1=-PPC
_FB3ErrorCount = 0x00040000 '# of errors so far
_FB3WarningCount = 0x00080000 '# of warnings so far
_FB3FloatDivChar = 0x00100000 '"/" or "\"
_FB3HideWarnings = 0x00200000 'show/hide warnings