mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
16 lines
225 B
Plaintext
16 lines
225 B
Plaintext
module foo{Type};
|
|
import std::io;
|
|
|
|
macro @hello(Type thing) {
|
|
io::printfn("%d", $sizeof(thing));
|
|
}
|
|
|
|
module bar;
|
|
|
|
import foo @public;
|
|
|
|
alias @intHello = foo::@hello{int};
|
|
|
|
fn void main(String[] args) {
|
|
@intHello(42);
|
|
} |