Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- -----------------------------------------
- * Game hacking QTS ( Quickie Tip Series )
- * no. 29 - Code that only runs in debug build
- -----------------------------------------
- * Author: SEGnosis
- * Thanks to:
- * bitterbanana - No known site
- * Drunken Cheetah - No known site
- * fatboy88 - No known site
- * Geek4Ever - No known site
- * learn_more - www.uc-forum.com
- * Novocaine - http://ilsken.net/blog/?page_id=64
- * Philly0494 - No known site
- * Roverturbo - www.uc-forum.com
- * SilentKarma - www.halocoders.com - offline
- * Strife - www.uc-forum.com
- * Wieter20 - No known site
- */
- //----------------------------------//
- void Test()
- {
- // In Visual Studio when a project is being compiled
- // The define _DEBUG is added when debug build is selected
- #ifdef _DEBUG // If this define exist, we are in debug build
- MessageBox(0, "This will only execute in debug build", 0, 0);
- #endif
- #ifndef _DEBUG // If this define does not exist, then we are in release build
- MessageBox(0, "This will only execute in release build", 0, 0);
- #endif
- // the _DEBUG define does not take effect until building so your code will appear blanked out in Visual Studio
- }
- //----------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement