Question : c print only in debug mode
Answered by : lyu-ji
#ifdef DEBUG
# define DEBUG_PRINT(x) printf x
#else
# define DEBUG_PRINT(x) do {} while (0)
#endif
Source : https://stackoverflow.com/questions/1941307/debug-print-macro-in-c | Last Update : Mon, 21 Sep 20