aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-02 15:28:49 +0000
committergingerBill <bill@gingerbill.org>2022-02-02 15:28:49 +0000
commit78815778ee399b4df1c5f7c44522c792b9dc3e23 (patch)
tree884c8a2a459ff9068daac89a63ced2e160564ea9 /src/entity.cpp
parenta04d849e30da1252e56d29ee18e2a51a5b6cb0d5 (diff)
Add `//+private file` to complement `//+private` (`//+private package`)
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index a0438a9f4..8327a517e 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -245,7 +245,7 @@ bool is_entity_exported(Entity *e, bool allow_builtin = false) {
if (e->flags & EntityFlag_NotExported) {
return false;
}
- if (e->file != nullptr && (e->file->flags & AstFile_IsPrivate) != 0) {
+ if (e->file != nullptr && (e->file->flags & (AstFile_IsPrivatePkg|AstFile_IsPrivateFile)) != 0) {
return false;
}