aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-18 11:13:44 +0100
committergingerBill <bill@gingerbill.org>2024-04-18 11:13:44 +0100
commit5c52f3cf2fee63f860914d062555ed87c1dba9d8 (patch)
tree073f621e647dde375b072826202d92d1e14ce122 /src/checker.cpp
parent889cd5461ca3601d5359269345594903bd9ed5ca (diff)
Add `ODIN_NO_BOUNDS_CHECK`
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 2b3ca0e9f..e82836b2a 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1111,6 +1111,7 @@ gb_internal void init_universal(void) {
add_global_bool_constant("ODIN_DEBUG", bc->ODIN_DEBUG);
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_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);