aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-09 15:18:29 +0000
committergingerBill <bill@gingerbill.org>2024-02-09 15:18:29 +0000
commit5c4485f65767366c14dfd9a98945a5479ae0e449 (patch)
tree94ee4b5181c381f45332b27fb37d78b5464c6bde /src/check_expr.cpp
parentbae2a6fc1e0d2207e51a66b5ea6e8ae511a3da6a (diff)
Add `#load_directory(path: string) > []runtime.Load_Directory_File`
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 9b71208cd..11eb4b533 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -7107,8 +7107,8 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
name == "defined" ||
name == "config" ||
name == "load" ||
- name == "load_hash" ||
- name == "load_or"
+ name == "load_directory" ||
+ name == "load_hash"
) {
operand->mode = Addressing_Builtin;
operand->builtin_id = BuiltinProc_DIRECTIVE;
@@ -7958,6 +7958,7 @@ gb_internal ExprKind check_basic_directive_expr(CheckerContext *c, Operand *o, A
name == "config" ||
name == "load" ||
name == "load_hash" ||
+ name == "load_directory" ||
name == "load_or"
) {
error(node, "'#%.*s' must be used as a call", LIT(name));