aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-31 17:27:23 +0100
committergingerBill <bill@gingerbill.org>2023-07-31 17:27:23 +0100
commit19b24fcce2e012b18decfd8c31b810eb8a571fd5 (patch)
tree0ac34520c80dc8e4d47eed23b3b0222ff873d1ce
parentbe6f355665a0e9d469f7c405e918b0bb64d4f793 (diff)
Add require_results for proc groups
-rw-r--r--src/checker.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index fbc550f00..895e3c528 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -3002,6 +3002,12 @@ gb_internal DECL_ATTRIBUTE_PROC(proc_group_attribute) {
}
}
return true;
+ } else if (name == "require_results") {
+ if (value != nullptr) {
+ error(elem, "Expected no value for '%.*s'", LIT(name));
+ }
+ ac->require_results = true;
+ return true;
}
return false;
}