aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2022-10-23 04:32:45 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2022-10-23 04:32:45 +0200
commit92fb65cf2eed21e5f97d7818172290271eaee63e (patch)
treee986b7d9a155b0dbd57c703a5ffbc581724a612b /src/check_builtin.cpp
parenta51943e27f625552c4a56ec7389ff2d06e8c7a8d (diff)
Fix `#defined(I)`.
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 a00dd5def..fc889fb28 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1533,10 +1533,10 @@ bool check_builtin_procedure_directive(CheckerContext *c, Operand *operand, Ast
}
bool is_defined = check_identifier_exists(c->scope, arg);
- gb_unused(is_defined);
+ // gb_unused(is_defined);
operand->type = t_untyped_bool;
operand->mode = Addressing_Constant;
- operand->value = exact_value_bool(false);
+ operand->value = exact_value_bool(is_defined);
} else if (name == "config") {
if (ce->args.count != 2) {