C: what should I use for trace/diagnostic messages in a library?
- by Cheeso
In .NET I would use System.Diagnostics.Trace...
What would I use in C or C++ ?
right now I have a macro defined:
diagnostics ON:
#define DIAG(A) { printf(A); }
debugging off:
#define DIAG(A) { if(FALSE) {}}
Is there a standard way?