mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
15 lines
219 B
Plaintext
15 lines
219 B
Plaintext
import std;
|
|
|
|
macro void example(String... x)
|
|
{
|
|
$for var $i = 0; $i < $vacount; $i++: // #error: can only be used inside of a macro with untyped
|
|
io::printn($vaarg[$i]);
|
|
$endfor
|
|
}
|
|
|
|
fn void main()
|
|
{
|
|
example();
|
|
}
|
|
|