summaryrefslogtreecommitdiff
path: root/list-functions.lisp
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-03 01:02:22 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-03 01:02:22 +0200
commit440652a2a6b4d2e1cf121f802d026de4ed83614b (patch)
tree52e256239379f1d0f059f7f40db4625ac61bf70b /list-functions.lisp
parent6ed66892fe330fb8e422923993b262b44533bdb5 (diff)
Add PUSHQ.
Diffstat (limited to 'list-functions.lisp')
-rw-r--r--list-functions.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/list-functions.lisp b/list-functions.lisp
index 1fe749b..29d913f 100644
--- a/list-functions.lisp
+++ b/list-functions.lisp
@@ -236,3 +236,13 @@
;;;;-----------------------------------------------------------------
+;;;; UTILITIES
+;;;;-----------------------------------------------------------------
+(defmacro pushq (thing variable)
+ (let ((tmp (gensym)))
+ `(let ((,tmp ,thing))
+ (setq ,variable (cons ,tmp ,variable))
+ ,tmp)))
+
+
+;;;;-----------------------------------------------------------------