Last active
June 4, 2017 16:06
-
-
Save deque-blog/8a542730e57c520b93b24e0ac5c35b07 to your computer and use it in GitHub Desktop.
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
(defmacro defn-log | |
[name bindings & body] | |
`(defn ~name ; Defined a function with `defn` | |
~bindings ; With the same argument as `defn` would | |
(println ; But with an added trace API call | |
~(compile-log-message name bindings)) | |
~@body)) ; Before the body of the function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment