aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/macro.zig
blob: 9855f666b5279fccb5ce669a2e1ee4dea20ef31e (plain)
1
2
3
4
5
6
7
8
9
10
pub export fn foo() c_int {
    var a: c_int = 1;
    _ = &a;
    var b: c_int = 2;
    _ = &b;
    return a + b;
}
pub const MAKELOCAL = @compileError("unable to translate C expr: unexpected token .Equal"); // macro.c:1:9

// syntax