HCoop
/
clinton
/
parenscript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
854b1c7
)
Added defmacro to ParenScript.
author
Vladimir Sedach
<vsedach@gmail.com>
Fri, 22 Jun 2007 20:46:40 +0000
(20:46 +0000)
committer
Vladimir Sedach
<vsedach@gmail.com>
Fri, 22 Jun 2007 20:46:40 +0000
(20:46 +0000)
src/js.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/js.lisp
b/src/js.lisp
index
e0e9718
..
a12753f
100644
(file)
--- a/
src/js.lisp
+++ b/
src/js.lisp
@@
-912,6
+912,9
@@
vice-versa.")
`(,(first macro) () ,@(rest macro))) macros)
,@body))
+(defjsmacro defmacro (name args &body body)
+ `(lisp (defjsmacro ,name ,args ,@body) nil))
+
;;; lisp eval
(defjsmacro lisp (&rest forms)