Add #load_hash(<filepath>, <string-hash-kind>)

This commit is contained in:
gingerBill
2021-11-04 16:29:41 +00:00
parent d551144841
commit bc2bf1caeb
2 changed files with 147 additions and 0 deletions

View File

@@ -6108,6 +6108,7 @@ ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *call, Ast *pr
name == "defined" ||
name == "config" ||
name == "load" ||
name == "load_hash" ||
name == "load_or"
) {
operand->mode = Addressing_Builtin;
@@ -6943,6 +6944,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
name == "defined" ||
name == "config" ||
name == "load" ||
name == "load_hash" ||
name == "load_or"
) {
error(node, "'#%.*s' must be used as a call", LIT(name));