Skip to main content

Mojo module

debug_assert

Implements run-time assertions.

These are Mojo built-ins, so you don't need to import them.

comptime values​

ASSERT_MODE​

comptime ASSERT_MODE = env_get_string["ASSERT", "safe"]()

The compile-time assertion mode from the ASSERT environment variable.

Functions​

Was this page helpful?