aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-03 11:53:32 +0100
committergingerBill <bill@gingerbill.org>2021-10-03 11:53:32 +0100
commit2bdae52fed2ac0845ebb24348f3834dbc63f6d34 (patch)
tree02b05813607d403681bbf41443eafcaa510e430b /src/parser.hpp
parentb3a66b3950283853ce99a7da71ad8f1850fba0d8 (diff)
Add @(init) attribute for procedures, allowing for procedures to be called at startup
These procedures will be called after global variables have been initialized as normal
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 6ce877a6c..f1779bdbc 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -174,6 +174,7 @@ struct AstPackage {
Array<AstFile *> files;
Array<AstForeignFile> foreign_files;
bool is_single_file;
+ isize order;
MPMCQueue<AstPackageExportedEntity> exported_entity_queue;