mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
const string -> constant string
This commit is contained in:
@@ -6525,7 +6525,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
check_expr(c, &x, ce->args[1]);
|
check_expr(c, &x, ce->args[1]);
|
||||||
|
|
||||||
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
||||||
error(ce->args[1], "Expected a const string for field argument");
|
error(ce->args[1], "Expected a constant string for field argument");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6605,7 +6605,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
check_expr(c, &x, ce->args[1]);
|
check_expr(c, &x, ce->args[1]);
|
||||||
|
|
||||||
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
||||||
error(ce->args[1], "Expected a const string for field argument");
|
error(ce->args[1], "Expected a constant string for field argument");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7242,7 +7242,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
check_expr(c, &x, ce->args[1]);
|
check_expr(c, &x, ce->args[1]);
|
||||||
|
|
||||||
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
||||||
error(ce->args[1], "Expected a const string for field argument");
|
error(ce->args[1], "Expected a constant string for field argument");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user