3 ms·
I'm glad to know I'm not the only one abusing compiler macros for "ghetto source control". Having said that, there are plenty of cases where you can't use macr
by mbenjaminsmith 13y ago
I'm glad to know I'm not the only one abusing compiler macros for "ghetto source control".
Having said that, there are plenty of cases where you can't use macros (like all languages/compilers/interpreters that don't support them). I don't agree with the author here though. Just comment the damn code out normally until you can clean everything up. Doing it that way encourages leaving that mess intact and forgetting about it.
- Lagged2Death 13y agoI don't think that counts as either "ghetto source control" or "abuse" and I'd be interested to find out why you feel this way. I mean, if you're talking about basic C, this (_DEBUG) is actually built-in to most systems from the get-go, for exactly this purpose. "Abuse?"