diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-25 13:06:09 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-25 13:06:09 +0100 |
| commit | 99080d41f3c02dbc179db8ebb0f215d199f49c89 (patch) | |
| tree | 85b97e030cda198d83681d20a6710c53494376cf /src/entity.cpp | |
| parent | 92f3567ee6e28ac07f237e9dbe7287436954877b (diff) | |
INTERNAL USE ONLY: `//+lazy` build flag
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 30bbef9dc..f875b9607 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -66,6 +66,8 @@ enum EntityFlag : u64 { EntityFlag_Disabled = 1ull<<24, EntityFlag_Cold = 1ull<<25, // procedure is rarely called + EntityFlag_Lazy = 1ull<<26, // Lazily type checked + EntityFlag_Test = 1ull<<30, EntityFlag_Overridden = 1ull<<63, @@ -132,7 +134,7 @@ struct Entity { lbModule * code_gen_module; lbProcedure *code_gen_procedure; - isize order_in_src; + u64 order_in_src; String deprecated_message; // IMPORTANT NOTE(bill): This must be a discriminated union because of patching @@ -225,7 +227,7 @@ 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) { + if (e->file != nullptr && (e->file->flags & AstFile_IsPrivate) != 0) { return false; } |