mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
14 lines
174 B
Plaintext
14 lines
174 B
Plaintext
struct Test
|
|
{
|
|
int a;
|
|
}
|
|
fn int main(String[] args)
|
|
{
|
|
bool x = test(Test, {"a"});
|
|
return 0;
|
|
}
|
|
|
|
macro test($Type, ...)
|
|
{
|
|
return $defined($Type t = $vaexpr[0]);
|
|
} |