Mojo module
compile
Implements functions that return compile-time information.
Aliases
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 = (env_get_int["__SANITIZE_ADDRESS"]() == 1) if is_defined["__SANITIZE_ADDRESS"]() else is_defined["__SANITIZE_ADDRESS"]()
True if address sanitizer is enabled at compile-time
Functions
-
is_compile_time: Returns true if the current code is executed at compile time, false otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!