aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-05-30 11:30:26 +0100
committerGitHub <noreply@github.com>2024-05-30 11:30:26 +0100
commit7058d6f320d4a136a0b9de92b3e3bcb9e791b2ef (patch)
treee6e1dc18da14d0d2ca5ceeeb6de6b70746a31737 /src/check_expr.cpp
parentf86bb11f84839c3e40727272e999e9ce1436f44a (diff)
parent9b78061c8fb83202973d509b9af24f0a12786958 (diff)
Merge pull request #3652 from Dudejoe870/compile-time-hash
Add #hash built-in directive for compile-time string hashing
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 8672941c1..2e008fe93 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -7414,7 +7414,8 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
name == "config" ||
name == "load" ||
name == "load_directory" ||
- name == "load_hash"
+ name == "load_hash" ||
+ name == "hash"
) {
operand->mode = Addressing_Builtin;
operand->builtin_id = BuiltinProc_DIRECTIVE;