Repository navigation
Preprocessor
Home › Preprocessor › Preprocessor
Commands that control the preprocessor.
Description
Preprocessor commands are sent to the compiler to control what gets compiled and how. They can be used to choose to compile one block of code rather than another for cross-platform compatibility, include headers or other source files, define small inline functions called macros, or alter how the compiler handles variables.
Conditional Compilation
Commands that allow for branches in compilation based on conditions.
Text Replacement
Commands that create text-replacement macros.
File Directives
Commands that indicate to the compiler how other files relate to the source file.
Control Directives
Commands that set compile options, control compilation, and report compile time information.
Metacommands
Commands that are kept for backward compatibility.
Conditional Compilation
Compiles the following code block based on a condition.
Compiles the following code block if a symbol is defined.
Compiles the following code block if a symbol is not defined.
Compiles the following code block if a condition is true and the previous conditions was false.
Compiles the following code block if a symbol is defined and the previous conditions was false.
Compiles the following code block if a symbol is not defined and the previous conditions was false.
Compiles the following code block if previous conditions were false.
Signifies the end of a code block.
Returns "-1" if a symbol is defined, otherwise "0".
Text Replacement
Creates a single-line text-replacement macro.
Creates a multi-line text-replacement macro.
Undefines a symbol.
Converts text into a string literal.
Concatenates two pieces of text.
Indicates string literal immediately following must be processed for escape sequences.
Indicates string literal immediately following must not be processed for escape sequences.
File Directives
Inserts text from a file.
Includes a library in the linking processes.
Includes a path to search for libraries in the linking process.
Control Directives
Sets compiling options.
Reserves symbol name.
#Cmdline
Sets compiler command options from source.
Sets dialect from source.
Outputs a messages to standard output while compiling.
Outputs a messages to standard output and stops compilation.
Stops compilation with an error message if a given condition is false.
Sets the current line number and file name.
Metacommands
'$Include
Alternate form of the #include directive.
Alternate form of the Option Dynamic statement.
Alternate form of the Option Static statement.
'$Lang
Alternate form of the #lang directive.
See also
Category: Preprocessor
Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- Partial Types
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing