zig/doc/langref/inline_call.zig

12 lines
167 B
Zig
Raw Permalink Normal View History

test "inline function call" {
if (foo(1200, 34) != 1234) {
@compileError("bad");
}
}
inline fn foo(a: i32, b: i32) i32 {
return a + b;
}
// test