diff options
| author | gingerBill <bill@gingerbill.org> | 2020-07-14 23:01:34 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-07-14 23:01:34 +0100 |
| commit | 7ae54ae3b4141ff0136ce9a1684bc16e7d994b41 (patch) | |
| tree | 922364bc791c97067afa92d326adf09643ff96eb /src/checker.cpp | |
| parent | b2beb9512f60da01072895028dc6f00c422b6ab8 (diff) | |
Add `-no-dynamic-literals` to disallow dynamic array and map literals
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 df15ffc67..ed26c6d70 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -740,6 +740,7 @@ void init_universal(void) { add_global_constant(str_lit("ODIN_DEBUG"), t_untyped_bool, exact_value_bool(bc->ODIN_DEBUG)); add_global_constant(str_lit("ODIN_DISABLE_ASSERT"), t_untyped_bool, exact_value_bool(bc->ODIN_DISABLE_ASSERT)); add_global_constant(str_lit("ODIN_USE_LLVM_API"), t_untyped_bool, exact_value_bool(bc->use_llvm_api)); + add_global_constant(str_lit("ODIN_NO_DYNAMIC_LITERALS"), t_untyped_bool, exact_value_bool(bc->no_dynamic_literals)); // Builtin Procedures |