aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-06-12 14:53:05 +0100
committergingerBill <bill@gingerbill.org>2023-06-12 14:53:05 +0100
commit296674e18b5ce3ba90013fb5d599251c66d8bd18 (patch)
treeeefec7b910ceaaab36f567133e63260206f1cd34 /src/check_builtin.cpp
parent52a926dd903b85a1784726e1beb0ea830c302b5f (diff)
Rename `ODIN_DISALLOW_RTTI` to `ODIN_NO_RTTI`; Remove dead command line flags
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 46ee6b7f9..269a0ec48 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -2063,7 +2063,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
if (c->scope->flags&ScopeFlag_Global) {
compiler_error("'type_info_of' Cannot be declared within the runtime package due to how the internals of the compiler works");
}
- if (build_context.disallow_rtti) {
+ if (build_context.no_rtti) {
error(call, "'%.*s' has been disallowed", LIT(builtin_name));
return false;
}
@@ -2106,7 +2106,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
if (c->scope->flags&ScopeFlag_Global) {
compiler_error("'typeid_of' Cannot be declared within the runtime package due to how the internals of the compiler works");
}
- if (build_context.disallow_rtti) {
+ if (build_context.no_rtti) {
error(call, "'%.*s' has been disallowed", LIT(builtin_name));
return false;
}