mirror of https://github.com/axmolengine/axmol.git
25 lines
476 B
C
25 lines
476 B
C
//
|
|
// MyLog.h
|
|
// cocos2d_libs
|
|
//
|
|
// Created by James Chen on 4/23/14.
|
|
//
|
|
//
|
|
|
|
#ifndef __cocos2d_libs__MyLog__
|
|
#define __cocos2d_libs__MyLog__
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
|
|
|
extern void CCNSLog(const char* file, int line, const char* function, const char* format, ...);
|
|
|
|
#define CCNSLOG(format, ...) CCNSLog(__FILE__, __LINE__, __FUNCTION__, format, ##__VA_ARGS__, nullptr)
|
|
|
|
#else
|
|
|
|
#define CCNSLOG CCLOG
|
|
|
|
#endif
|
|
|
|
#endif /* defined(__cocos2d_libs__MyLog__) */
|