update std lib to use error type and global variables
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#version("2.0.0")
|
||||
export library "mathtest";
|
||||
|
||||
export fn add(a: i32, b: i32) -> i32 {
|
||||
export fn add(a: i32, b: i32) i32 => {
|
||||
a + b
|
||||
}
|
||||
|
||||
export fn hang() -> unreachable {
|
||||
entry: goto entry;
|
||||
export fn hang() unreachable => {
|
||||
while (true) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user