v0.0.4 - odin build_dll, atomic.odin, sync.odin

This commit is contained in:
Ginger Bill
2016-12-09 16:28:31 +00:00
parent de9016b7d0
commit a6f8c9d6e0
11 changed files with 125 additions and 62 deletions
+5
View File
@@ -1095,6 +1095,11 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
#if 1
// NOTE(bill): This must be handled here so it has access to the parent scope stuff
// e.g. using
if (pd->name->kind != AstNode_Ident) {
error_node(pd->name, "A declaration's name must be an identifier, got %.*s", LIT(ast_node_strings[pd->name->kind]));
break;
}
Entity *e = make_entity_procedure(c->allocator, c->context.scope, pd->name->Ident, NULL, pd->tags);
e->identifier = pd->name;