mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Clarify #location error message when not a call.
This commit is contained in:
+1
-1
@@ -7895,7 +7895,7 @@ gb_internal ExprKind check_basic_directive_expr(CheckerContext *c, Operand *o, A
|
|||||||
} else {
|
} else {
|
||||||
if (name == "location") {
|
if (name == "location") {
|
||||||
init_core_source_code_location(c->checker);
|
init_core_source_code_location(c->checker);
|
||||||
error(node, "'#%.*s' must be used in a call expression", LIT(name));
|
error(node, "'#location' must be used as a call, i.e. #location(proc), where #location() defaults to the procedure in which it was used.");
|
||||||
o->type = t_source_code_location;
|
o->type = t_source_code_location;
|
||||||
o->mode = Addressing_Value;
|
o->mode = Addressing_Value;
|
||||||
} else if (
|
} else if (
|
||||||
|
|||||||
Reference in New Issue
Block a user