-
-
Notifications
You must be signed in to change notification settings - Fork 9
Transcendent Values
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Transcendent values are values used by the preprocessor that only exist at compile-time
Every transcendent value is one of the following:
Transcendent values can be combined and operated on using meta expressions
3.14159265 * view_radius ** 2
See meta expressions for more information
The compiler defines some special transcendent variables
__compiler__
__compiler_version__
__compiler_version_name__
__compiler_major__
__compiler_minor__
__compiler_release__
__compiler_qualifier__
__windows__
__macos__
__unix__
__linux__
__little_endian__
__big_endian__
__endianness__
__typeinfo__
__no_typeinfo__
__file__
__line__
__column__
__stdlib__
__randmax__
The value of a transcendent variable can be injected into source code using the #get
meta directive
is_on_macos bool = #get __macos__
use_fullscreen_window bool = #get fullscreen
See meta directives for more information