summaryrefslogtreecommitdiff
path: root/util.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'util.lisp')
-rw-r--r--util.lisp15
1 files changed, 7 insertions, 8 deletions
diff --git a/util.lisp b/util.lisp
index 08c7d1c..63777ea 100644
--- a/util.lisp
+++ b/util.lisp
@@ -187,13 +187,12 @@
expansion-1
(macroexpand expansion-2))))
-(%defun* macroexpand-all (object . rest)
- (let* ((env (if rest (car rest) nil)))
- (if (consp object)
- (let ((expansion (macroexpand object env)))
- (cons (macroexpand-all (car expansion))
- (macroexpand-all (cdr expansion))))
- object)))
-
(%defmacro* unless (test . body)
`(if (not ,test) (progn ,@body) nil))
+
+(%defmacro* when (test . body)
+ `(if ,test (progn ,@body) nil))
+
+
+(export '(and or not let* list* case cond append reverse macroexpand
+ otherwise unless when))