Skip to content

Instantly share code, notes, and snippets.

@IreneKnapp
Created May 10, 2015 23:31
Show Gist options
  • Save IreneKnapp/840ecc4ae532c01e0bef to your computer and use it in GitHub Desktop.
Save IreneKnapp/840ecc4ae532c01e0bef to your computer and use it in GitHub Desktop.
(defmacro debug (&body n)
`(progn
,(mapcar
(lambda (ni)
`(format t "~W: ~W~%" ',ni ,ni))
n)))
(let ((a (make-array 10))
(x "some string"))
(setf (aref a 0) 42)
(setf (aref a 1) 45)
(debug (aref a 0) (aref a 1) x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment