This is definitely not how you write a macro :P You should take a look at the [Macro tutorial](https://nim-lang.org/docs/tut3.html) for a hands-on experience with macros.
More learning resources can be found at the [learning portal](https://nim-lang.org/learn.html).
