From d781aca9d8afe16e5dfe967fd7f9e259a19f518a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20V=C3=A1zquez?= Date: Sat, 4 May 2013 12:42:34 +0100 Subject: [PATCH] ffi-intern-hook simplification --- src/ffi.lisp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)))))) -- 1.7.10.4