Created
June 17, 2015 20:10
-
-
Save nanoant/e478b88339aacecd6d59 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
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