Guest User

Untitled

a guest
Jan 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #define variable 1
  2.  
  3. #ifdef variable //if variable is defined as 1?
  4. //code
  5. #endif
  6.  
  7. #ifdef _WIN32
  8. /* Something specific to windows. */
  9. #else
  10. /* Something not available on windows. */
  11. #endif
  12.  
  13. #ifdef ...
  14.  
  15. if (...)
  16.  
  17. #if SOMETHING
  18. do_some_c_stuff();
  19. #endif
  20.  
  21. #ifdef SOMETHING
  22. do_some_c_stuff();
  23. #endif
  24.  
  25. #ifdef SOMETHING
  26. #if SOMETHING
  27. do_some_c_stuff();
  28. #endif
  29. #endif
  30.  
  31. #if DEBUG
  32. // Do some additional logging here we don't want to to in release.
  33. #endif
Add Comment
Please, Sign In to add comment