16 Avr
2013
16 Avr
'13
15:06
Does the interpreter support FFI ? If not, then how can I "embed" custom FFI definitions into gsi so that they're available in REPL?? shen@ubuntu:~/gambc-v4_6_7-devel$ head test.scm (c-declare "#include \"SDL.h\"") ;;; SDL Constants ;;; (define sdl-init-timer #x00000001) (define sdl-init-audio #x00000010) (define sdl-init-video #x00000020) (define sdl-init-cdrom #x00000100) (define sdl-init-joystick #x00000200) (define sdl-init-noparachute #x00100000) (define sdl-init-eventthread #x01000000) shen@ubuntu:~/gambc-v4_6_7-devel$ gsi test.scm *** ERROR IN "test.scm"@1.1 -- Interpreter does not support ##c-declare