cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCPlatformDefine.h File Reference
#include "android/log.h"

Macros

#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)

Macro Definition Documentation

#define CC_ASSERT (   cond)    CC_NO_MESSAGE_PSEUDOASSERT(cond)
var CC_ASSERT (   var)    CC_NO_MESSAGE_PSEUDOASSERT(cond)
local CC_ASSERT (   local)    CC_NO_MESSAGE_PSEUDOASSERT(cond)
#define CC_DLL
var CC_DLL
local CC_DLL
#define CC_MESSAGE_PSEUDOASSERT (   cond,
  msg 
)
Value:
if (!(cond)) { \
__android_log_print(ANDROID_LOG_ERROR, \
"cocos2d-x assert", \
"file:%s function:%s line:%d, %s", \
__FILE__, __FUNCTION__, __LINE__, msg); \
}
var CC_MESSAGE_PSEUDOASSERT (   var,
  var 
)
Value:
if (!(cond)) { \
__android_log_print(ANDROID_LOG_ERROR, \
"cocos2d-x assert", \
"file:%s function:%s line:%d, %s", \
__FILE__, __FUNCTION__, __LINE__, msg); \
}
local CC_MESSAGE_PSEUDOASSERT (   local,
  local 
)
Value:
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)
Value:
if (!(cond)) { \
__android_log_print(ANDROID_LOG_ERROR, \
"cocos2d-x assert", \
"%s function:%s line:%d", \
__FILE__, __FUNCTION__, __LINE__); \
}
var CC_NO_MESSAGE_PSEUDOASSERT (   var)
Value:
if (!(cond)) { \
__android_log_print(ANDROID_LOG_ERROR, \
"cocos2d-x assert", \
"%s function:%s line:%d", \
__FILE__, __FUNCTION__, __LINE__); \
}
local CC_NO_MESSAGE_PSEUDOASSERT (   local)
Value:
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)
var NULL   ((void *)0)
local NULL   ((void *)0)