my basic aim, as heading suggests, is to get debug code removed in release code, when expending before compilation. For now, I am using _Debug
(or custom name) macro to guard debug line which works just fine.
But, I don't want to write the per-processor guard for every function / operation call like writing in a C++ debug file.
Edit: Thanks for response, If I can create macro function that guards itself while expending like :
DBG_PRINT(fname,msg)\ #ifdef _Debug\ fprintf(fname, msg)\ #endif
.
Please suggest me some clean and single liner way-out.
Thanks and Happy coding