mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-04 03:21:15 -04:00
Add require_results for proc groups
This commit is contained in:
1 parent
be6f355665
commit
19b24fcce2
1 file changed
+6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user