Thank you guys, it helped.
I guess I have to be more careful when I say that something does not exist.
For simple cases there is `when declared(module.foo)` (or just `when
declared(foo)`).
To answar your question, probably not the way you want it to be. For me it took
me a while to get used to the way how things are done with Nim macros. For
example with typed macros, you can ask the type of any node with `getTypeInst`
and `getTypeImpl` what type they have, or even look on how the
Is it possible at compile time/run time to check if symbol "" is defined?
If it is defined, then is it possible to get know if it is Proc/Variable/etc ?