Skip to content

Instantly share code, notes, and snippets.

@maxhodak
Created March 20, 2010 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxhodak/338553 to your computer and use it in GitHub Desktop.
Save maxhodak/338553 to your computer and use it in GitHub Desktop.
(defmacro import-headers [class-name]
`(do
(import ~(symbol (format "com.myfit.%s.thrift.%s" class-name class-name)))
(import ~(symbol (format "com.myfit.%s.thrift.ServerImpl" class-name)))))
(defn run [class-name addr port]
(import-headers class-name)
...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment