[gambit-list] FFI in REPL?

Zhen Shen zhenshen10 at outlook.com
Tue Apr 16 15:06:38 EDT 2013


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 at 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 at ubuntu:~/gambc-v4_6_7-devel$ gsi test.scm
*** ERROR IN "test.scm"@1.1 -- Interpreter does not support ##c-declare

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20130416/612d447f/attachment.htm>


More information about the Gambit-list mailing list