Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Currently doesn't work
import macros
macro do_sequentially(idx: int, statements: varargs[untyped]): untyped =
result = nnkStmtList.newTree()
do_sequentially(1):
do: echo "Foo"
do: echo "Bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment