Fix hooking internal used methods (#1900)
This commit is contained in:
parent
975ff19b1d
commit
dbc350a75e
|
|
@ -30,11 +30,11 @@
|
|||
#endif
|
||||
|
||||
#ifdef LOG_DISABLED
|
||||
#define LOGD(...)
|
||||
#define LOGV(...)
|
||||
#define LOGI(...)
|
||||
#define LOGW(...)
|
||||
#define LOGE(...)
|
||||
#define LOGD(...) 0
|
||||
#define LOGV(...) 0
|
||||
#define LOGI(...) 0
|
||||
#define LOGW(...) 0
|
||||
#define LOGE(...) 0
|
||||
#else
|
||||
template <typename... T>
|
||||
constexpr inline void LOG(int prio, const char* tag, fmt::format_string<T...> fmt, T&&... args) {
|
||||
|
|
@ -47,8 +47,8 @@ constexpr inline void LOG(int prio, const char* tag, fmt::format_string<T...> fm
|
|||
#define LOGD(fmt, ...) LOG(ANDROID_LOG_DEBUG, LOG_TAG, "{}:{}#{}" ": " fmt, __FILE_NAME__, __LINE__, __PRETTY_FUNCTION__ __VA_OPT__(,) __VA_ARGS__)
|
||||
#define LOGV(fmt, ...) LOG(ANDROID_LOG_VERBOSE, LOG_TAG, "{}:{}#{}" ": " fmt, __FILE_NAME__, __LINE__, __PRETTY_FUNCTION__ __VA_OPT__(,) __VA_ARGS__)
|
||||
#else
|
||||
#define LOGD(...)
|
||||
#define LOGV(...)
|
||||
#define LOGD(...) 0
|
||||
#define LOGV(...) 0
|
||||
#endif
|
||||
#define LOGI(...) LOG(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
||||
#define LOGW(...) LOG(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
||||
|
|
|
|||
|
|
@ -28,18 +28,18 @@
|
|||
#endif
|
||||
|
||||
#ifdef LOG_DISABLED
|
||||
#define LOGD(...)
|
||||
#define LOGV(...)
|
||||
#define LOGI(...)
|
||||
#define LOGW(...)
|
||||
#define LOGE(...)
|
||||
#define LOGD(...) 0
|
||||
#define LOGV(...) 0
|
||||
#define LOGI(...) 0
|
||||
#define LOGW(...) 0
|
||||
#define LOGE(...) 0
|
||||
#else
|
||||
#ifndef NDEBUG
|
||||
#define LOGD(fmt, ...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, "%s:%d#%s" ": " fmt, __FILE_NAME__, __LINE__, __PRETTY_FUNCTION__ __VA_OPT__(,) __VA_ARGS__)
|
||||
#define LOGV(fmt, ...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, "%s:%d#%s" ": " fmt, __FILE_NAME__, __LINE__, __PRETTY_FUNCTION__ __VA_OPT__(,) __VA_ARGS__)
|
||||
#else
|
||||
#define LOGD(...)
|
||||
#define LOGV(...)
|
||||
#define LOGD(...) 0
|
||||
#define LOGV(...) 0
|
||||
#endif
|
||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@
|
|||
#endif
|
||||
|
||||
#ifdef LOG_DISABLED
|
||||
#define LOGD(...)
|
||||
#define LOGV(...)
|
||||
#define LOGI(...)
|
||||
#define LOGW(...)
|
||||
#define LOGE(...)
|
||||
#define LOGD(...) 0
|
||||
#define LOGV(...) 0
|
||||
#define LOGI(...) 0
|
||||
#define LOGW(...) 0
|
||||
#define LOGE(...) 0
|
||||
#else
|
||||
#ifndef NDEBUG
|
||||
#define LOGD(fmt, ...) \
|
||||
|
|
@ -25,8 +25,8 @@
|
|||
": " fmt, \
|
||||
__FILE_NAME__, __LINE__, __PRETTY_FUNCTION__ __VA_OPT__(, ) __VA_ARGS__)
|
||||
#else
|
||||
#define LOGD(...)
|
||||
#define LOGV(...)
|
||||
#define LOGD(...) 0
|
||||
#define LOGV(...) 0
|
||||
#endif
|
||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 050348fd08325321c7a67ce6355ddcd51bcace57
|
||||
Subproject commit d3cd9313644499c181212dd66602f6ab2aa75ab6
|
||||
Loading…
Reference in New Issue