problem-solving
problem-solving copied to clipboard
Vararg support in NativeCall
NativeCall is currently missing vararg support. Adding it requires making up a bit of syntax. A vararg function has a set of fixed arguments (similar to usual fixed arg functions), but can take additional arguments. The additional arguments need to be somehow mapped to C types. So we need to somehow specify those types. How could the syntax for all of this look?