-
Notifications
You must be signed in to change notification settings - Fork 8
Directives and Meta Commands
Abe Pralle edited this page Sep 7, 2022
·
3 revisions
| Command | Description |
|---|---|
$define ID tokens |
Define an identifier as an arbitrary expression. |
$id(...) |
Concatenates and converts one or more tokens into an "identifier" token. |
$include filepath |
Includes the specified file as part of the project. |
$localMacro |
A macro that is scope-limited to the remainder of the current file. |
$lowercase(...) |
Concatenates and converts one or more tokens into a literal lowercase string token. |
$macro |
Create a function-style macro that replaces its call with a parameterized code block. |
$requireRogue "x.y" |
Specifies the minimum version of Rogue required to compile, e.g. $requireRogue "2.0". |
$rogueVersion |
Evaluates to a string containing the version of Rogue supported by the compiler. E.g. println $rogueVersion → 2.0. |
$sourceFilepath |
Evaluates to the String filepath of the current source file. |
$sourceLine |
Evaluates to the Int32 value of the current line number. |
$target("...") |
Compile-time check to determine if a particular compile target has been specified. |