zig/example/shared_library/mathtest.zig
2015-12-03 17:06:33 -07:00

11 lines
153 B
Zig

#version("2.0.0")
export library "mathtest";
export fn add(a: i32, b: i32) -> i32 {
a + b
}
export fn hang() -> unreachable {
entry: goto entry;
}