projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplifications, better comments and BLOCK/RETURN-FROM IR translators
[jscl.git]
/
src
/
ffi.lisp
diff --git
a/src/ffi.lisp
b/src/ffi.lisp
index
7d902a7
..
29862a8
100644
(file)
--- 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.
;; 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))))))
;; Define it as a symbol macro to access to the
;; Javascript variable literally.
(%define-symbol-macro symbol `(%js-vref ,(string symbol))))))