mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 12:07:45 +00:00
Change memory layout of map to be 3 words smaller
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user