aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-08-30 19:14:10 +0100
committergingerBill <bill@gingerbill.org>2018-08-30 19:14:10 +0100
commitaa542980cea146e05cf9bb5f1d792e1f092328ae (patch)
treeeea45538d6934f0c669a5bf218396d2ce6294098 /src/entity.cpp
parente0240c186f2939f39f2051c5123b8b75e5fdb184 (diff)
Change memory layout of `map` to be 3 words smaller
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 5a112e5a2..85e768f2c 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -45,6 +45,7 @@ enum EntityFlag {
EntityFlag_Sret = 1<<11,
EntityFlag_BitFieldValue = 1<<12,
EntityFlag_PolyConst = 1<<13,
+ EntityFlag_NotExported = 1<<14,
EntityFlag_CVarArg = 1<<20,
EntityFlag_AutoCast = 1<<21,
@@ -172,6 +173,10 @@ bool is_entity_exported(Entity *e) {
return false;
}
+ if (e->flags & EntityFlag_NotExported) {
+ return false;
+ }
+
String name = e->token.string;
if (name.len == 0) {
return false;