Skip to content

Instantly share code, notes, and snippets.

@akiradeveloper
Created March 11, 2015 11:06
Show Gist options
  • Save akiradeveloper/45d1c5874b29d32e039d to your computer and use it in GitHub Desktop.
Save akiradeveloper/45d1c5874b29d32e039d to your computer and use it in GitHub Desktop.
simple macro not work
import macros
macro mac(n: expr): expr =
proc f(): int =
n.intVal.int
echo mac(10)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment