#define trace(...) doesn't work c++


i have following preprocessor divective:



#ifndef ndebug
#define snippet printf
#else
#define trace(...)
#endif


and instance use is:



trace("trace: parameter = %i\n", param);


in c works ideally good i build both debug redeem versions, nonetheless c++ compiler emits following:



warning: unfair impression macro parameter name



error: badly punctuated parameter list `#define'



and points warning blunder 'trace(...)' directive.



how c++ correctly?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?