diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-18 11:22:31 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-18 11:22:31 +0100 |
| commit | ece78d22d2b549116a0884d3578972b8f389f983 (patch) | |
| tree | 9d6b8c38235ea44b174d9d8a37ea72c8db504978 /src/checker.cpp | |
| parent | 5c52f3cf2fee63f860914d062555ed87c1dba9d8 (diff) | |
Add `-no-type-assert` and `ODIN_NO_TYPE_ASSERT`
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index e82836b2a..b7fe2b903 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -1112,6 +1112,7 @@ gb_internal void init_universal(void) { add_global_bool_constant("ODIN_DISABLE_ASSERT", bc->ODIN_DISABLE_ASSERT); add_global_bool_constant("ODIN_DEFAULT_TO_NIL_ALLOCATOR", bc->ODIN_DEFAULT_TO_NIL_ALLOCATOR); add_global_bool_constant("ODIN_NO_BOUNDS_CHECK", build_context.no_bounds_check); + add_global_bool_constant("ODIN_NO_TYPE_ASSERT", build_context.no_type_assert); add_global_bool_constant("ODIN_DEFAULT_TO_PANIC_ALLOCATOR", bc->ODIN_DEFAULT_TO_PANIC_ALLOCATOR); add_global_bool_constant("ODIN_NO_DYNAMIC_LITERALS", bc->no_dynamic_literals); add_global_bool_constant("ODIN_NO_CRT", bc->no_crt); |