Debug tips in C

Wrap your print statements with:
1

#ifdef __DEBUG  printf(...) #endif
Then add a "#define __DEBUG" when you test things and remove that definition when release.

留言