c3c
c3c copied to clipboard
Macro varargs
It should be easy to copy varargs from a macro, e.g.
macro foo(args...)
{
call_func(...args);
}
In this case:
func macro foo(a, #b, $c)
{ ... }
func macro bar(args....)
{
@foo(...args);
}
The code cannot know that we want to keep argument 2 unevaluated, 1 evaluated and 3 having to be constant. In this case, passing everything unevaluated would work. But at other times we want the evaluation to occur.
Implemented using $vaarg ct functions.