projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
concat-two
[jscl.git]
/
test.lisp
diff --git
a/test.lisp
b/test.lisp
index
6d386cb
..
ae8b02d
100644
(file)
--- a/
test.lisp
+++ b/
test.lisp
@@
-1,3
+1,7
@@
+;;; Library
+
+;;; Tests
+
(lambda (x y) x)
(debug "hola")
(lambda (x y) x)
(debug "hola")
@@
-26,12
+30,7
@@
;;; Macros
(debug "---MACROS---")
;;; Macros
(debug "---MACROS---")
-(eval-when-compile
- (%compile-defmacro 'defmacro
- (lambda (name args &rest body)
- (list 'eval-when-compile
- (list '%compile-defmacro (list 'quote name)
- (list* 'lambda args body))))))
+
(defmacro incf (x)
(list 'setq x (list '+ 1 x)))
(defmacro incf (x)
(list 'setq x (list '+ 1 x)))
@@
-69,15
+68,6
@@
(debug (lambda (x y &rest z) x))
(debug (lambda (x y &rest z) x))
-(progn
- (eval-when-compile
- (%compile-defun 'f))
- (fsetq f (lambda (x) (* x x))))
-
-(debug (f 33))
-
-;; (debug (foo))
-
;; (eval-when-compile
;; (%compile-defmacro 'defun
;; (lambda (name args &rest body)
;; (eval-when-compile
;; (%compile-defmacro 'defun
;; (lambda (name args &rest body)