-
-
Notifications
You must be signed in to change notification settings - Fork 9
Transcendent Values
Isaac Shelton edited this page Nov 9, 2025
·
3 revisions
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____wasm____bsd____freebsd____openbsd____netbsd____dragonfly____illumos____haiku____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