6#ifndef _ZFI_zfimplLog_h_
7#define _ZFI_zfimplLog_h_
14 #if (defined(ANDROID) || defined(__ANDROID__))
16 #include <android/log.h>
17 #define zfimplLog(fmt, ...) \
18 ((void)__android_log_print(ANDROID_LOG_ERROR, "JNILog", fmt, ##__VA_ARGS__))
19 #elif (defined(QT_VERSION) || defined(QT_CORE_LIB))
21 #define zfimplLog(fmt, ...) \
22 qDebug(fmt, ##__VA_ARGS__)
25 #define zfimplLog(fmt, ...) \
27 printf(fmt, ##__VA_ARGS__); \
34#ifndef zfimplUniqueName
35 #define zfimplUniqueName(name) _ZFP_zfimplUniqueName2(name, __LINE__)
36 #define _ZFP_zfimplUniqueName2(name, line) _ZFP_zfimplUniqueName3(name, line)
37 #define _ZFP_zfimplUniqueName3(name, line) _ZFP_uniq_##name##_##line
41#ifndef zfimplTimestamp
42 #define zfimplTimestamp() _ZFP_zfimplTimestamp()
46#ifndef zfimplInvokeTimeLogger
47 #define zfimplInvokeTimeLogger(hint, ...) \
48 _ZFP_zfimplInvokeTimeLogger zfimplUniqueName(ivkTime)(0, hint, ##__VA_ARGS__)
49 #define zfimplInvokeTimeLoggerWithCost(cost, hint, ...) \
50 _ZFP_zfimplInvokeTimeLogger zfimplUniqueName(ivkTime)(cost, hint, ##__VA_ARGS__)
54 _ZFP_zfimplInvokeTimeLogger(
int cond,
const char *hint, ...);
55 ~_ZFP_zfimplInvokeTimeLogger(
void);
64 #define zfimplTime() ((const char *)_ZFP_zfimplTime().buf)
70extern ZFLIB_ZFCore _ZFP_zfimplTimeStr _ZFP_zfimplTime(
void);
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30