Skip to content

Instantly share code, notes, and snippets.

@nanoant
Created June 17, 2015 20:10
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 nanoant/e478b88339aacecd6d59 to your computer and use it in GitHub Desktop.
Save nanoant/e478b88339aacecd6d59 to your computer and use it in GitHub Desktop.
import macros
# macro dump(st: stmt): stmt =
# echo st.treeRepr
macro dump(ex: expr): expr =
echo ex.treeRepr
ex
proc test() {.dump.} =
echo "test"
type
User = object of RootObj
name {.dump.}: string
pass: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment