Index: samples/android_sample/jni/android_extension.h~ |
diff --git a/samples/android_sample/jni/android_extension.h~ b/samples/android_sample/jni/android_extension.h~ |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8f551102073639a578804c572b74066ac405696a |
--- /dev/null |
+++ b/samples/android_sample/jni/android_extension.h~ |
@@ -0,0 +1,12 @@ |
+#ifndef LOG_H |
+#define LOG_H |
+ |
+#include <android/log.h> |
+ |
+#define LOGX(LOG_LEVEL, ...) do { \ |
+ __android_log_print(LOG_LEVEL, "DartExt", __VA_ARGS__); \ |
+ } while (0) |
+#define LOGI(...) LOGX(ANDROID_LOG_INFO, __VA_ARGS__) |
+#define LOGE(...) LOGX(ANDROID_LOG_ERROR, __VA_ARGS__) |
+ |
+#endif |