aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
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;