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
This commit is contained in:
gingerBill
2021-10-03 11:53:32 +01:00
parent b3a66b3950
commit 2bdae52fed
7 changed files with 145 additions and 13 deletions
+1
View File
@@ -174,6 +174,7 @@ struct AstPackage {
Array<AstFile *> files;
Array<AstForeignFile> foreign_files;
bool is_single_file;
isize order;
MPMCQueue<AstPackageExportedEntity> exported_entity_queue;