Created
September 17, 2010 18:28
-
-
Save scottjad/584694 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
;;; tried this | |
(when-let [con (resolve 'swank.core.connection/*current-connection*)] | |
(do (def swank-connection con) | |
(defmacro break [] | |
`(binding [swank.core.connection/*current-connection* swank-connection] | |
(swank.core/break))))) | |
;;; compiled but when running | |
(break) | |
;; get stack overflow on invoke var | |
;;; ended up doing this | |
(when (resolve 'swank.core.connection/*current-connection*) | |
(eval '(do (def swank-connection swank.core.connection/*current-connection*) | |
(defmacro break [] | |
`(binding [swank.core.connection/*current-connection* swank-connection] | |
(swank.core/break)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment