aboutsummaryrefslogtreecommitdiff
path: root/src/entity.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-02-01 17:52:55 +0000
committerGinger Bill <bill@gingerbill.org>2017-02-01 17:52:55 +0000
commit4e7082a68dd5261c3c36eccf92a62a0ce84995a8 (patch)
tree01b5d690870b28b43a5e5c0c434495e56059babc /src/entity.c
parent502e63b9c50e71735c7989e59155a490bca991d2 (diff)
Change internals of `context`; Disable `immutable`
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index 3464ad82e..3ca709aa4 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -101,6 +101,8 @@ struct Entity {
};
};
+gb_global Entity *e_context = NULL;
+
Entity *alloc_entity(gbAllocator a, EntityKind kind, Scope *scope, Token token, Type *type) {
Entity *entity = gb_alloc_item(a, Entity);