From 5ce65557219d57d19e9e45c5670b48bb40e22c3f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 12 Nov 2017 17:55:16 +0000 Subject: Allow for default arguments after a variadic parameter --- src/types.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index 54ed86d52..087f9208e 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -31,7 +31,7 @@ enum BasicKind { Basic_uintptr, Basic_rawptr, Basic_string, // ^u8 + int - Basic_any, // ^Type_Info + rawptr + Basic_any, // rawptr + ^Type_Info Basic_UntypedBool, Basic_UntypedInteger, @@ -153,6 +153,7 @@ struct TypeStruct { Type * abi_compat_result_type; \ bool return_by_pointer; \ bool variadic; \ + i32 variadic_index; \ bool require_results; \ bool c_vararg; \ bool is_polymorphic; \ -- cgit v1.2.3