#ifdef IOS
#if defined(_DEBUG) || defined(DEBUG)
#define DLog(...) NSLog(__VA_ARGS__)
#else
#define DLog(...)
#endif
#endif //end IOS
#ifdef win32
#if defined(_DEBUG) || defined(DEBUG)
#define DLog(format, ...) fprintf(stdout,format "\n", ##__VA_ARGS__)
#else
#define DLog(format, ...)
#endif
#endif //end win32
#ifdef Android
#if defined(_DEBUG) || defined(DEBUG)
#include <android/log.h>
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
#else
#define LOGI(...)
#endif
#endif //end Android
IOS打印当前类名和函数名
DLog(@" 类名:%@ 函数名:%@",NSStringFromClass([self class]),NSStringFromSelector(_cmd));