compile
Implements functions that return compile-time information.
comptime values
DebugLevel
comptime DebugLevel = _DebugLevel()
Represents the debug level used during compilation.
OptimizationLevel
comptime OptimizationLevel = _OptimizationLevel()
Represents the optimization level used during compilation.
SanitizeAddress
comptime SanitizeAddress = is_defined[StringSlice("__SANITIZE_ADDRESS")]() and (get_defined_int[StringSlice("__SANITIZE_ADDRESS")]() == 1)
True if address sanitizer is enabled at compile-time.
Functions
-
codegen_unreachable: Compilation fails if cond is True and the caller of the function is being generated as runtime code.