Skip to content

COCOS2D_DEBUG is always 1 on Android #19289

@formatCvt

Description

@formatCvt
  • cocos2d-x version: 3.17.1
  • devices test on: any android device
  • developing environments
    • NDK version: ndk18
    • Xcode version: -
    • VS version: -
    • browser type and version: -

Steps to Reproduce:

  1. Create empty project
  2. add this code in any place to AppDelegate.cpp:
#if defined(NDEBUG) && (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#ifdef COCOS2D_DEBUG
#if COCOS2D_DEBUG > 0
#warning COCOS2D_DEBUG > 0 defined!
#else
#warning COCOS2D_DEBUG = 0 defined!
#endif
#else
#warning COCOS2D_DEBUG is not defined!
#endif
#endif
  1. switch to release mode and build project

screen shot 2019-01-09 at 18 10 20

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions