From 64419a3ffee442e831dc3d54a64fe382baf7c297 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Tue, 15 Oct 2013 10:43:45 +0200 Subject: Dynamically shared object support --- examples/working-shared/sdl.ey | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/working-shared/sdl.ey (limited to 'examples/working-shared') 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 -- cgit v1.2.3