mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 11:50:07 +00:00
Golang style enumerations with iota
This commit is contained in:
@@ -83,6 +83,10 @@ struct Entity {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Entity *e_iota = NULL;
|
||||
|
||||
|
||||
Entity *alloc_entity(gbAllocator a, EntityKind kind, Scope *scope, Token token, Type *type) {
|
||||
Entity *entity = gb_alloc_item(a, Entity);
|
||||
entity->kind = kind;
|
||||
|
||||
Reference in New Issue
Block a user