code_junkie

How do I declare a debug only statement

Nov 13th, 2011
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. if #DEBUG
  2. {
  3. // etc etc
  4. }
  5.  
  6. #ifndef NDEBUG
  7. /* Debug only code */
  8. #endif
  9.  
  10. #ifdef DEBUG
  11. ....
  12. #endif
Add Comment
Please, Sign In to add comment