I tried:
#ifdef _DEBUG
#define DBG(param) param
#else
#define DBG(param)
#endif
But I cant use it, i.e., to initialize a debug only member in a initialization list:
myClass::myClass():var1(0) DBG(, var2(param) )
{..}
because of the comma, "param" is ignored..
Can I create a macro that just copy and paste everything?