mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Fix #defined(I).
This commit is contained in:
@@ -1533,10 +1533,10 @@ bool check_builtin_procedure_directive(CheckerContext *c, Operand *operand, Ast
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool is_defined = check_identifier_exists(c->scope, arg);
|
bool is_defined = check_identifier_exists(c->scope, arg);
|
||||||
gb_unused(is_defined);
|
// gb_unused(is_defined);
|
||||||
operand->type = t_untyped_bool;
|
operand->type = t_untyped_bool;
|
||||||
operand->mode = Addressing_Constant;
|
operand->mode = Addressing_Constant;
|
||||||
operand->value = exact_value_bool(false);
|
operand->value = exact_value_bool(is_defined);
|
||||||
|
|
||||||
} else if (name == "config") {
|
} else if (name == "config") {
|
||||||
if (ce->args.count != 2) {
|
if (ce->args.count != 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user