Add ERROR_BLOCK() to check_unique_package_names

This commit is contained in:
gingerBill
2023-10-09 13:36:15 +01:00
parent 0c10b951a9
commit cffa035c1b
+2
View File
@@ -5848,6 +5848,8 @@ gb_internal void check_deferred_procedures(Checker *c) {
}
gb_internal void check_unique_package_names(Checker *c) {
ERROR_BLOCK();
StringMap<AstPackage *> pkgs = {}; // Key: package name
string_map_init(&pkgs, 2*c->info.packages.count);
defer (string_map_destroy(&pkgs));