I'm curious as to whether anyone else has hacked together a conditional compilation setup for MonkeyC.
It seems like something that would be nice to have built-in to MonkeyC since there's such a priority on small, efficient code; rather than have debug code, etc wrapped in feature flags, it's preferable to have it excised entirely.
I've written a Python script that hunts for the following tags // [strip:begin <tag>] and // [strip:end <tag>] and conditionally comments/uncomments code between those markers.
This allows me to quickly add remove logging/test fixtures in my test and release builds.
Anyone else doing something similar? Would there be any interest in me publishing this code? Or is this a bad idea for some reason?
Curious what folks thoughts are here...