diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-09 15:18:29 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-09 15:18:29 +0000 |
| commit | 5c4485f65767366c14dfd9a98945a5479ae0e449 (patch) | |
| tree | 94ee4b5181c381f45332b27fb37d78b5464c6bde /src/check_expr.cpp | |
| parent | bae2a6fc1e0d2207e51a66b5ea6e8ae511a3da6a (diff) | |
Add `#load_directory(path: string) > []runtime.Load_Directory_File`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 5 |
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)); |