diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-12 17:55:16 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-12 17:55:16 +0000 |
| commit | 5ce65557219d57d19e9e45c5670b48bb40e22c3f (patch) | |
| tree | f789ae3e6bda92e589311042a8a7ab902a03d2f6 /src/types.cpp | |
| parent | 53b3ad186f6c3ba27f308466f44de89ea1e91638 (diff) | |
Allow for default arguments after a variadic parameter
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; \ |