aboutsummaryrefslogtreecommitdiff
path: root/tests/glfw.amal
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glfw.amal')
-rw-r--r--tests/glfw.amal7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/glfw.amal b/tests/glfw.amal
index e3c2fc6..37608fc 100644
--- a/tests/glfw.amal
+++ b/tests/glfw.amal
@@ -2,15 +2,14 @@
extern const glfwInit: fn() i32;
extern const glfwTerminate: fn() i32; // should return void....
-extern const glfwCreateWindow: fn(x: i32, y: i32, title: str, monitor: usize, share: usize) usize;
-extern const glfwWindowShouldClose: fn(window: usize) i64;
+extern const glfwCreateWindow: fn(x: i32, y: i32, title: str, monitor: u64, share: u64) u64;
+extern const glfwWindowShouldClose: fn(window: u64) i32;
const main = fn {
glfwInit();
- const window = glfwCreateWindow(50, 50, "hello, world", 0, 0);
+ const window = glfwCreateWindow(50i32, 50i32, "hello, world", 0, 0);
while glfwWindowShouldClose(window) == 0 {
}
glfwTerminate();
- //const a = 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1;
} \ No newline at end of file