aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-04 16:29:41 +0000
committergingerBill <bill@gingerbill.org>2021-11-04 16:29:41 +0000
commitbc2bf1caeba5cca828318d1547e214f785e2d71a (patch)
treef0c48a0521ce33c84874ee1d97b3ddae7be450c2 /src/check_expr.cpp
parentd551144841f7dfd61e22e9dbed2b1b35d8736ffb (diff)
Add `#load_hash(<filepath>, <string-hash-kind>)`
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 2139cd777..6c85ae43a 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -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));