aboutsummaryrefslogtreecommitdiff
path: root/examples/working-shared
diff options
context:
space:
mode:
Diffstat (limited to 'examples/working-shared')
-rw-r--r--examples/working-shared/sdl.ey15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/working-shared/sdl.ey b/examples/working-shared/sdl.ey
new file mode 100644
index 0000000..23d2e79
--- /dev/null
+++ b/examples/working-shared/sdl.ey
@@ -0,0 +1,15 @@
+"lib/ffi.ey" include
+"lib/ffi/sdl.ey" include
+
+ffi .sdl ":" via
+
+:SDL_INIT_VIDEO :SDL_Init {
+ :SDL_GetError dump
+ "SDL_Init failed" die
+} rep
+
+"Ohai!" 0 0 800 600 0 :SDL_CreateWindow
+
+"done" die
+
+# vim: syn=elymas