Skip to content

Instantly share code, notes, and snippets.

@scottjad
Created September 17, 2010 18:28
Show Gist options
  • Save scottjad/584694 to your computer and use it in GitHub Desktop.
Save scottjad/584694 to your computer and use it in GitHub Desktop.
;;; 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