zig/example/shared_library/mathtest.zig

8 lines
109 B
Zig
Raw Normal View History

export fn add(a: i32, b: i32) -> i32 {
a + b
}
2015-12-04 08:06:04 +08:00
export fn hang() -> unreachable {
while (true) { }
2015-12-04 08:06:04 +08:00
}