aboutsummaryrefslogtreecommitdiff
path: root/src/checker/entity.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-16 11:38:20 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-16 11:38:20 +0100
commit968de5aae886e87f395533283c17d77f31eabd0d (patch)
tree9ce5f4b7726c52c6737e65a5c34ca7123df049b7 /src/checker/entity.cpp
parent807256dea4d22550ee5da48e806b4e773670fbfc (diff)
Call expression, either handle all or ignore all results.
Diffstat (limited to 'src/checker/entity.cpp')
-rw-r--r--src/checker/entity.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp
index 3814f38f0..3a4ffb191 100644
--- a/src/checker/entity.cpp
+++ b/src/checker/entity.cpp
@@ -51,7 +51,7 @@ struct Entity {
b8 is_field; // Is struct field
} Variable;
struct {
- struct DeclInfo *decl; // Usually NULL
+ // struct DeclInfo *decl; // Usually NULL
} TypeName;
struct {
b8 pure;
@@ -66,6 +66,15 @@ struct Entity {
};
};
+b32 is_entity_exported(Entity *e) {
+ // TODO(bill): Do I really want non-exported entities?
+ // if (e->token.string.len >= 1 &&
+ // e->token.string.text[0] == '_') {
+ // return false;
+ // }
+ return true;
+}
+
gb_global gbAtomic64 entity_guid_counter = {0};
EntityGuid next_entity_guid(void) {