aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-27 23:02:55 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-27 23:02:55 +0000
commit31aacd5bf435224c7d8f9b19359175d3e6d25660 (patch)
treeab9d62de198d9874e1afb7212ab3feb46fde4f01 /src/check_decl.c
parent92453369c5558feaaaa116fbc54968b087e1aeab (diff)
Fix parsing for block/if expression within if/for/etc. statementsv0.0.6
Diffstat (limited to 'src/check_decl.c')
-rw-r--r--src/check_decl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/check_decl.c b/src/check_decl.c
index 9fb786286..51655d445 100644
--- a/src/check_decl.c
+++ b/src/check_decl.c
@@ -302,10 +302,11 @@ void check_proc_lit(Checker *c, Entity *e, DeclInfo *d) {
error_node(pd->body, "A procedure tagged as `#foreign` cannot have a body");
}
- if (proc_type->Proc.calling_convention != ProcCC_Odin) {
- error_node(d->proc_lit, "An internal procedure may only have the Odin calling convention");
- proc_type->Proc.calling_convention = ProcCC_Odin;
- }
+ // TODO(bill): Is this the best option? What about passing to external shit?!
+ // if (proc_type->Proc.calling_convention != ProcCC_Odin) {
+ // error_node(d->proc_lit, "An internal procedure may only have the Odin calling convention");
+ // proc_type->Proc.calling_convention = ProcCC_Odin;
+ // }
d->scope = c->context.scope;