zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

macro.zig (234B) - Raw


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