aboutsummaryrefslogtreecommitdiff
path: root/elymas/lib/ffi
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-10-15 10:43:45 +0200
committerDrahflow <drahflow@gmx.de>2013-10-15 10:43:45 +0200
commit64419a3ffee442e831dc3d54a64fe382baf7c297 (patch)
treeeddfd7b0ba69be0c8ae86806c87c5c98f0468489 /elymas/lib/ffi
parent00feca5e1e9bd4e1625a76fc548b06f05a0e88f8 (diff)
Dynamically shared object support
Diffstat (limited to 'elymas/lib/ffi')
-rw-r--r--elymas/lib/ffi/sdl.ey15
1 files changed, 15 insertions, 0 deletions
diff --git a/elymas/lib/ffi/sdl.ey b/elymas/lib/ffi/sdl.ey
new file mode 100644
index 0000000..605e6e3
--- /dev/null
+++ b/elymas/lib/ffi/sdl.ey
@@ -0,0 +1,15 @@
+<
+ sys .so ":" via
+
+ "/usr/lib/x86_64-linux-gnu/libSDL2.so" :dlopen --
+
+ 32 ==:SDL_INIT_VIDEO
+
+ { -0021 :resolveFunction -01 deffd }' "->" deffd
+
+ "i" "i32" ->SDL_Init
+ "" "s" ->SDL_GetError
+ "siiiii" "p" ->SDL_CreateWindow
+> /sdl ffi .defv
+
+# vim: syn=elymas