This is not possible. Macros only have access to the literal code itself, never its values (nor types). What is the actual problem you’re trying to solve?
You need to give it the right module. And you need to be aware that it happens at compile time. It’s valid code pattern but it may not be what you want.