diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-12 19:18:54 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-12 19:19:43 +0000 |
| commit | 7e4067c44ceb21b4ca0ce89e501df1bf9de106b7 (patch) | |
| tree | ab84472e0d084203d520cdcc93344e4d76ac9d56 /src/check_builtin.cpp | |
| parent | f2f6c3c67d310c3ffce4c996b732d98f0abbe341 (diff) | |
Begin work to move entry point code to Odin itself rather than in C++ side
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index dc8c209c9..82ad6d161 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -219,6 +219,12 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 GB_PANIC("Implement built-in procedure: %.*s", LIT(builtin_name)); break; + case BuiltinProc___entry_point: + operand->mode = Addressing_NoValue; + operand->type = nullptr; + mpmc_enqueue(&c->info->intrinsics_entry_point_usage, call); + break; + case BuiltinProc_DIRECTIVE: { ast_node(bd, BasicDirective, ce->proc); String name = bd->name.string; |