#!/usr/bin/env amalgam extern const glfwInit: fn() i32; extern const glfwTerminate: fn() i32; // should return void.... 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(50i32, 50i32, "hello, world", 0u64, 0u64); while glfwWindowShouldClose(window) == 0 { } glfwTerminate(); }