check if in debug mode

On win32 I use _DEBUG to check if I’m in debug mode:

#if (_DEBUG)
addChild(labelDebugInfo);
#endif

But on android this does not work.
How can I do the same on android?

You can use NDEBUG which is defined when APP_OPTIM := release is set in Application.mk

then in your code :
#ifndef NDEBUG
// debug mode
#else
// release
#endif

and make sure you define NDEBUG in win32 when in release mode and not to define it when in debug mode.