aboutsummaryrefslogtreecommitdiff
path: root/tests/glfw.amal
blob: 8957127f0b550e707e0be4cf8b377cdc97a8d9fb (plain)
1
2
3
4
5
6
7
8
9
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;

const main = fn {
    glfwInit();
    glfwCreateWindow(50, 50, "hello, world", 0, 0);
    glfwTerminate();
}