Original Post
Im currently implementing a profiler. Would you guys say it is harmfull doing something like this considering the ugliness of #ifdef: void somefunc() { #ifdef PROFILER_ACTIVE my profiler code here #endif ... }