Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Created January 20, 2014 07:54
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 barcharcraz/8516498 to your computer and use it in GitHub Desktop.
Save barcharcraz/8516498 to your computer and use it in GitHub Desktop.
import macros
macro test(s: stmt): stmt =
result = quote do:
discard $i
test:
proc addNums(x: int, y:int): int = x + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment