diff options
| author | Drahflow <drahflow@gmx.de> | 2013-10-15 10:43:45 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2013-10-15 10:43:45 +0200 |
| commit | 64419a3ffee442e831dc3d54a64fe382baf7c297 (patch) | |
| tree | eddfd7b0ba69be0c8ae86806c87c5c98f0468489 /examples/working-shared | |
| parent | 00feca5e1e9bd4e1625a76fc548b06f05a0e88f8 (diff) | |
Dynamically shared object support
Diffstat (limited to 'examples/working-shared')
| -rw-r--r-- | examples/working-shared/sdl.ey | 15 |
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 |
