Created
August 15, 2015 08:18
-
-
Save tklee1975/21f20da89af15c2f7177 to your computer and use it in GitHub Desktop.
Determine Debug or Release Build in Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "AppHelper.h" | |
#include "cocos2d.h" | |
bool AppHelper::isDebugMode() | |
{ | |
#if COCOS2D_DEBUG > 0 | |
return true; | |
#else | |
return false; | |
#endif | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __AppHelper__ | |
#define __AppHelper__ | |
#include <stdio.h> | |
class AppHelper | |
{ | |
public: | |
static bool isDebugMode(); | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment