summaryrefslogtreecommitdiff
path: root/ironclad/macro-utils.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'ironclad/macro-utils.lisp')
-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))