aboutsummaryrefslogtreecommitdiff
path: root/cmd/demo/main.ha
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2021-12-09 12:03:25 +0100
committerDrew DeVault <sir@cmpwn.com>2021-12-09 12:03:25 +0100
commita1f6500c822e46594e635170ae08de8de107a876 (patch)
tree0ab5d1422df45b1900c3dd171ad342b9594593e9 /cmd/demo/main.ha
downloadhare-chip8-a1f6500c822e46594e635170ae08de8de107a876.tar.gz
Initial commit
Diffstat (limited to '')
-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);
+};