check if in debug mode

check if in debug mode
0.0 0


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

#if (_DEBUG)

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

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

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