mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
17 lines
259 B
Plaintext
17 lines
259 B
Plaintext
module test;
|
|
import std;
|
|
fn int main(String[] args)
|
|
{
|
|
test2(test1(1));
|
|
return 0;
|
|
}
|
|
|
|
macro String test1(a) => "abc";
|
|
|
|
macro test2(String...) // #error: must have a parameter name
|
|
{
|
|
$for var $i = 0; $i < $vacount; $i++:
|
|
io::printfn($vaarg[$i]);
|
|
$endfor
|
|
}
|