Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: jni/Debug.h

Issue 5137878350823424: Unified filenames, removed unused files. (Closed)
Patch Set: Created March 5, 2014, 1:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « jni/AndroidWebRequest.cpp ('k') | jni/Utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jni/Debug.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/jni/Debug.h
@@ -0,0 +1,18 @@
+#ifndef DEBUG
+#define DEBUG 0
+#endif
+
+#ifdef DEBUG
+
+#include <android/log.h>
+
+#define D_INFO ANDROID_LOG_INFO
+#define D_WARN ANDROID_LOG_WARN
+#define D_ERROR ANDROID_LOG_ERROR
+#define D(lvl, msg, args...) if(lvl) { __android_log_print(lvl, "JS", msg, ## args ); __android_log_print(lvl, "JS", "\n"); }
+
+#else
+
+#define D(lvl, msg, args...)
+
+#endif
« no previous file with comments | « jni/AndroidWebRequest.cpp ('k') | jni/Utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld