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

Unified Diff: jni/debug.h

Issue 9271056: ABP/Android V8 integration code (Closed)
Patch Set: ABP/Android V8 integration code Created Feb. 1, 2013, 8:40 a.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/Application.mk ('k') | jni/fileOps.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/Application.mk ('k') | jni/fileOps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld