Guest User

Untitled

a guest
Mar 25th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.17 KB | None | 0 0
  1. import macros
  2.  
  3. proc doSomething(): int =
  4.   echo "Hello World"
  5.   return 10
  6.  
  7. macro test() =
  8.   result = quote do:
  9.     doSomething()
  10.  
  11. if isMainModule:
  12.   discard test()
Advertisement
Add Comment
Please, Sign In to add comment