Skip to content

Instantly share code, notes, and snippets.

@tklee1975
Created August 15, 2015 08:18
Show Gist options
  • Save tklee1975/21f20da89af15c2f7177 to your computer and use it in GitHub Desktop.
Save tklee1975/21f20da89af15c2f7177 to your computer and use it in GitHub Desktop.
Determine Debug or Release Build in Code
#include "AppHelper.h"
#include "cocos2d.h"
bool AppHelper::isDebugMode()
{
#if COCOS2D_DEBUG > 0
return true;
#else
return false;
#endif
}
#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