Browse Source

Add require_results for proc groups

gingerBill 2 years ago
parent
commit
19b24fcce2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/checker.cpp

+ 6 - 0
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;
 }