cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
宏定义 - 图1 宏定义 - 图2)
- 文件列表 - 文件成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

宏定义

CCPlatformDefine.h 文件参考

#include "base/CCPlatformConfig.h"

#include "android/log.h"

## 宏定义
#define CC_DLL
#define CC_NO_MESSAGE_PSEUDOASSERT(cond)
#define CC_MESSAGE_PSEUDOASSERT(cond, msg)
#define CC_ASSERT(cond) CC_NO_MESSAGE_PSEUDOASSERT(cond)
#define CC_UNUSED_PARAM(unusedparam) (void)unusedparam
#define NULL ((void *)0)

宏定义说明

#define CC_ASSERT ( cond) CC_NO_MESSAGE_PSEUDOASSERT(cond)

#define CC_DLL

#define CC_MESSAGE_PSEUDOASSERT ( cond,
msg
)

值:

if (!(cond)) { \

__android_log_print(ANDROID_LOG_ERROR, \

"cocos2d-x assert", \

"file:%s function:%s line:%d, %s", \

FILE, FUNCTION, LINE, msg); \

}

#define CC_NO_MESSAGE_PSEUDOASSERT ( cond)

值:

if (!(cond)) { \

__android_log_print(ANDROID_LOG_ERROR, \

"cocos2d-x assert", \

"%s function:%s line:%d", \

FILE, FUNCTION, LINE); \

}

#define CC_UNUSED_PARAM ( unusedparam) (void)unusedparam

#define NULL ((void *)0)