summaryrefslogtreecommitdiff
path: root/ironclad
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2009-10-08 22:16:34 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2009-10-08 22:16:34 +0200
commit2d574face5edc74d932df5317cbd9b0b672c5cfe (patch)
tree206f1e53d3ef8fa2e3d18555a9cc89fd62e7c06e /ironclad
parent09db73007a5b807daadd9d57f11b4adc861eba15 (diff)
Add util-macros.lisp to our Ironclad fork.
Ignore-this: 95ba9ec94b949f41b8c9ebefe3712880 darcs-hash:75d28ef9577590743bf320b39d1acffe70882e83
Diffstat (limited to 'ironclad')
-rw-r--r--ironclad/macro-utils.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ironclad/macro-utils.lisp b/ironclad/macro-utils.lisp
new file mode 100644
index 0000000..f7a621f
--- /dev/null
+++ b/ironclad/macro-utils.lisp
@@ -0,0 +1,10 @@
+;;;; macro-utils.lisp -- things to make compiler macros easier
+
+(in-package :crypto)
+
+(defun quotationp (thing)
+ (and (consp thing) (consp (rest thing))
+ (cl:null (cddr thing)) (eq (first thing) 'quote)))
+
+(defun unquote (thing)
+ (if (quotationp thing) (second thing) thing))