forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types: Add initial support for varargs
This commit adds initial support for varargs on function declarations. Varargs are only supported on void functions for now. In the future, varargs can be supported on any function, but care will have to be take in the compiler to handle calls that make use of the legacy calling convention for functions where the output is captured in the argument list (e.g., plus(1,2,3)). Signed-off-by: Torin Sandall <[email protected]>
- Loading branch information
Showing
3 changed files
with
119 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters