X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fffi.lisp;h=29862a833d57d1d8a2100adfd862fc7abe9997df;hb=25702fbbf0ddd2e5386bbf257eee8150adfc7b47;hp=7d902a7032e10aaef4a57c1554823c69507693ed;hpb=b3be08ae30043a26fbc29877b42dd45aa233b178;p=jscl.git diff --git a/src/ffi.lisp b/src/ffi.lisp index 7d902a7..29862a8 100644 --- a/src/ffi.lisp +++ b/src/ffi.lisp @@ -26,10 +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) - (let ((,args (list-to-vector ,args))) - (%js-call (%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))))))