projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e945ee
)
DEFVAR
author
David Vazquez
<davazp@gmail.com>
Mon, 17 Dec 2012 00:22:51 +0000
(
00:22
+0000)
committer
David Vazquez
<davazp@gmail.com>
Mon, 17 Dec 2012 00:22:51 +0000
(
00:22
+0000)
test.lisp
patch
|
blob
|
history
diff --git
a/test.lisp
b/test.lisp
index
507ebfb
..
a85daba
100644
(file)
--- a/
test.lisp
+++ b/
test.lisp
@@
-6,6
+6,12
@@
`(eval-when-compile
(%compile-defmacro ',name (lambda ,args ,@body))))))
+(defmacro defvar (name value)
+ `(progn
+ (eval-when-compile
+ (%compile-defvar ',name))
+ (setq ,name ,value)))
+
(defmacro defun (name args &rest body)
`(progn
(eval-when-compile