Skip to content

Transcendent Values

IsaacShelton edited this page Mar 21, 2022 · 1 revision

Transcendent Values

Transcendent values are values used by the preprocessor that only exist at compile-time

Every transcendent value is one of the following:

Meta Expressions

Transcendent values can be combined and operated on using meta expressions

3.14159265 * view_radius ** 2

See meta expressions for more information

Intrinsic Transcendent Variables

The compiler defines some special transcendent variables

Injecting Transcendent Values

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

Clone this wiki locally