aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 0aece39c3..1712c7f98 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -199,6 +199,9 @@ bool is_entity_exported(Entity *e, bool allow_builtin = false) {
if (e->flags & EntityFlag_NotExported) {
return false;
}
+ if (e->file != nullptr && e->file->is_private) {
+ return false;
+ }
String name = e->token.string;
switch (name.len) {