Hello,<br><br>I am trying to compile file containing only this:<br><br>(DEFCONSTANT +SDL_HWSURFACE+ <br>  (FFI:C-INLINE () () :INT "SDL_HWSURFACE" :ONE-LINER T :SIDE-EFFECTS NIL))<br><br>however, I get <br><br clear="all">
> (compile-file "test.lisp")<br><br>;;;<br>;;; Compiling test.lisp.<br>;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0<br>;;;<br>;;; Error:<br>;;;   in file test.lisp, position 0<br>;;;   at (DEFCONSTANT +SDL_HWSURFACE+ ...)<br>
;;;   * The form (PROGN (SI:*MAKE-CONSTANT '+SDL_HWSURFACE+ (FFI:C-INLINE NIL NIL :INT "SDL_HWSURFACE" :ONE-LINER T :SIDE-EFFECTS NIL)) (SI::REGISTER-GLOBAL '+SDL_HWSURFACE+)) was not evaluated successfully.<br>
;;; Error detected:<br>;;; The special form c-inline cannot be used in the interpreter: (NIL NIL INT SDL_HWSURFACE ONE-LINER T SIDE-EFFECTS NIL)<br><br><br>Why is that? The file is compiled, not evaluated. Also, I tried to put it around eval-when with only :compile-toplevel option and it still failed.<br>
<br>-- <br>Bc. Peter Vaņu¹anik<br><a href="http://www.bishojo.tk" target="_blank">http://www.bishojo.tk</a><br><br>