zig/example/shared_library/mathtest.zig

8 lines
109 B
Zig

export fn add(a: i32, b: i32) -> i32 {
a + b
}
export fn hang() -> unreachable {
while (true) { }
}