compilation time conditional imports... somehow?
Context: currently I'm working on a game that uses dear imgui for all of the debug UI. I'm looking for an easy way to make these procedures only available at DEBUG builds.
I know that I can go through each procedure that uses imgui and define them conditionally with when ODIN_DEBUG, and do the same for the places that call them. That is actually what I'm doing already. However, it's hard to find the places that I need to do this. What if I miss a spot?
You know what would be easier? Being able to wrap the import statements themselves in these when blocks. This way I can easily grep my codebase for imports of this specific module, wrap them all with a when ODIN_DEBUG statement, and then have my compiler scream in case i use them anywhere inside a production build.
Any easy way to achieve this?