Skip to content

Instantly share code, notes, and snippets.

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: echo "Foo"
do: echo "Bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment