mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 03:12:22 -07:00
#alias type declarations; core library additions; _global import name for the global scope
This commit is contained in:
@@ -1716,7 +1716,19 @@ void init_preload(Checker *c) {
|
||||
t_map_header = e->type;
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
String _global = str_lit("_global");
|
||||
|
||||
Entity *e = make_entity_import_name(c->allocator, c->global_scope->parent, make_token_ident(_global), t_invalid,
|
||||
str_lit(""), _global,
|
||||
c->global_scope);
|
||||
|
||||
add_entity(c, c->global_scope, nullptr, e);
|
||||
}
|
||||
|
||||
c->done_preload = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user