<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Does the interpreter support FFI ? <br><br>If not, then how can I "embed" custom FFI definitions into gsi so that they're available in REPL??<br><br><br><br>shen@ubuntu:~/gambc-v4_6_7-devel$ head test.scm<br>(c-declare "#include \"SDL.h\"")<br><br>;;; SDL Constants ;;;<br>(define sdl-init-timer       #x00000001)<br>(define sdl-init-audio       #x00000010)<br>(define sdl-init-video       #x00000020)<br>(define sdl-init-cdrom       #x00000100)<br>(define sdl-init-joystick    #x00000200)<br>(define sdl-init-noparachute #x00100000)<br>(define sdl-init-eventthread #x01000000)<br>shen@ubuntu:~/gambc-v4_6_7-devel$ gsi test.scm<br>*** ERROR IN "test.scm"@1.1 -- Interpreter does not support ##c-declare<br><br>                                          </div></body>
</html>