X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fffi.lisp;h=29862a833d57d1d8a2100adfd862fc7abe9997df;hb=25702fbbf0ddd2e5386bbf257eee8150adfc7b47;hp=24fc472617bc548f641829cc980a9ee422ed85a8;hpb=14795770b0fd9ad416fe4db121be1c197e338c95;p=jscl.git diff --git a/src/ffi.lisp b/src/ffi.lisp index 24fc472..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) - (%js-call (%js-vref ,sym-name) (list-to-vector ,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))))))