Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # THIS USED TO WORK
- macro test*(args: untyped): untyped =
- result = newStmtList()
- for name in args:
- # Add quote directly
- add result, quote do:
- test `name`
- # NOT ANYMORE
- macro test*(args: untyped): untyped =
- result = newStmtList()
- for name in args:
- # Need to assign first to a variable
- let t = quote do:
- test `name`
- add result, t
Advertisement
Add Comment
Please, Sign In to add comment