8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f36025 commit 0c4fc46Copy full SHA for 0c4fc46
jni/log.h
@@ -1,9 +1,16 @@
1
#include <android/log.h>
2
3
+#ifdef LOG_NDEBUG
4
+#define LOGI(...)
5
+#define LOGE(...)
6
+#define LOGV(...)
7
+#define LOGD(...)
8
+#else
9
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
10
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
11
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE,LOG_TAG,__VA_ARGS__)
12
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
13
+#endif
14
15
#ifndef LOG
16
#define LOG(priority, tag, ...) \
0 commit comments