aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/demo/main.ha8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/demo/main.ha b/cmd/demo/main.ha
new file mode 100644
index 0000000..1a8e362
--- /dev/null
+++ b/cmd/demo/main.ha
@@ -0,0 +1,8 @@
+use sdl2;
+use os;
+
+export fn main() void = {
+ sdl2::init(sdl2::init_flags::VIDEO);
+ defer sdl2::quit();
+ os::exit(0);
+};