V
v4vijayakumar
Which of the following is the right way to debug/log in C?
1. using '#ifdef DEBUG' and compiling with '-DDubug'
2. defining and implementing 'log(loglevel, logmessage)' function
3. defining and implementing separate functions like, info(logmessage),
warn(logmessage), panic(logmessage), etc.
is it also possible to have debug/log functions in the code with out
incresing executable code size?
Thanks in advance.
1. using '#ifdef DEBUG' and compiling with '-DDubug'
2. defining and implementing 'log(loglevel, logmessage)' function
3. defining and implementing separate functions like, info(logmessage),
warn(logmessage), panic(logmessage), etc.
is it also possible to have debug/log functions in the code with out
incresing executable code size?
Thanks in advance.