Make require_results an attribute rather than a suffix tag for procedures

This commit is contained in:
gingerBill
2019-08-31 14:48:56 +01:00
parent 07ced1cf0e
commit b311540b16
6 changed files with 15 additions and 8 deletions

View File

@@ -2187,6 +2187,12 @@ DECL_ATTRIBUTE_PROC(proc_decl_attribute) {
error(elem, "Expected a string value for '%.*s'", LIT(name));
}
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;
}