X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fffi.lisp;h=29862a833d57d1d8a2100adfd862fc7abe9997df;hb=68cd2db6542fa3442d46b0331ecf8be8f86c09c2;hp=6dd8418300a8bf10df095ab000ab13c18738bb3e;hpb=f856e7bb2a359a419953bb62495847a3a8ad93fc;p=jscl.git diff --git a/src/ffi.lisp b/src/ffi.lisp index 6dd8418..29862a8 100644 --- a/src/ffi.lisp +++ b/src/ffi.lisp @@ -26,9 +26,7 @@ ;; provide a special lambda keyword ;; cl::&rest-vector to avoid list argument ;; consing, as well as allow inline declarations. - (fset symbol - (eval `(lambda (&rest ,args) - (apply (%js-vref ,sym-name) ,args)))) + (fset symbol (eval `(%js-vref ,sym-name))) ;; Define it as a symbol macro to access to the ;; Javascript variable literally. (%define-symbol-macro symbol `(%js-vref ,(string symbol))))))