projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcee727
)
Add incf!
author
David Vazquez
<davazp@gmail.com>
Sat, 15 Dec 2012 23:55:13 +0000
(23:55 +0000)
committer
David Vazquez
<davazp@gmail.com>
Sat, 15 Dec 2012 23:55:13 +0000
(23:55 +0000)
test.lisp
patch
|
blob
|
history
diff --git
a/test.lisp
b/test.lisp
index
f4c48ac
..
54d4a63
100644
(file)
--- a/
test.lisp
+++ b/
test.lisp
@@
-22,7
+22,15
@@
;;; Macros
(debug "---MACROS---")
+
+(eval-when-compile
+ (%compile-defmacro 'incf
+ (lambda (y)
+ (list 'setq y (list '+ 1 y)))))
+
(eval-when-compile
- (%compile-defmacro 'f (lambda (x) (list '+ x 10))))
+ (%compile-defvar 'x))
-(debug (f 10))
+(setq x 0)
+(incf x)
+(debug x)