C Print Only In Debug Mode

[Solved] C Print Only In Debug Mode | Swift - Code Explorer | yomemimo.com
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

Answers related to c print only in debug mode

Code Explorer Popular Question For Swift