Advertisement
Guest User

Untitled

a guest
May 28th, 2014
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. -----------------------------------------
  3. * Game hacking QTS ( Quickie Tip Series )
  4. * no. 29 - Code that only runs in debug build
  5. -----------------------------------------
  6. * Author: SEGnosis  
  7. * Thanks to:
  8. * bitterbanana      - No known site
  9. * Drunken Cheetah   - No known site
  10. * fatboy88      - No known site
  11. * Geek4Ever         - No known site
  12. * learn_more        - www.uc-forum.com
  13. * Novocaine         - http://ilsken.net/blog/?page_id=64
  14. * Philly0494        - No known site
  15. * Roverturbo        - www.uc-forum.com
  16. * SilentKarma       - www.halocoders.com - offline
  17. * Strife        - www.uc-forum.com
  18. * Wieter20      - No known site
  19. */
  20.  
  21.  
  22. //----------------------------------//
  23.  
  24.  
  25. void Test()
  26. {
  27.     // In Visual Studio when a project is being compiled
  28.     // The define _DEBUG is added when debug build is selected
  29.  
  30.     #ifdef _DEBUG // If this define exist, we are in debug build
  31.         MessageBox(0, "This will only execute in debug build", 0, 0);
  32.     #endif
  33.  
  34.     #ifndef _DEBUG // If this define does not exist, then we are in release build
  35.         MessageBox(0, "This will only execute in release build", 0, 0);
  36.     #endif
  37.  
  38.     // the _DEBUG define does not take effect until building so your code will appear blanked out in Visual Studio
  39. }
  40.  
  41.  
  42. //----------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement