mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
24 lines
274 B
Plaintext
24 lines
274 B
Plaintext
module test;
|
|
import std;
|
|
|
|
struct OfStruct
|
|
{
|
|
int type;
|
|
}
|
|
|
|
struct IContainAnArrayOfStructs
|
|
{
|
|
OfStruct[] array;
|
|
}
|
|
|
|
macro reproduce(OfStruct[] $self)
|
|
{
|
|
var a = $self;
|
|
var b = $self[0];
|
|
}
|
|
|
|
fn int main(String[] args)
|
|
{
|
|
reproduce({{1},{2},{3}});
|
|
return 0;
|
|
} |