Created
December 22, 2019 21:06
-
-
Save earl-ducaine/3151a85c5b2a0ee6888ccab306cd28da to your computer and use it in GitHub Desktop.
Emit macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun emit-defreplace (name newname) | |
(let ((form | |
'(defmacro name (&body body) | |
`(newname ,@body)))) | |
(setf (cadr form) name) | |
(setf (car (cadr (cadddr form))) newname) | |
form)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment