aboutsummaryrefslogtreecommitdiff
path: root/example/shared_library/mathtest.zig
blob: e52332c2e1c76a87dbd8d4275e1e309807d6a1d5 (plain)
1
2
3
4
5
6
7
8
9
10
#version("2.0.0")
export library "mathtest";

export fn add(a: i32, b: i32) -> i32 {
    a + b
}

export fn hang() -> unreachable {
    while (true) { }
}