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

Side by Side Diff: jni/Debug.h

Issue 5697499218051072: Usage of new API, cleanups (reduced) (Closed)
Patch Set: Fixed leftover first-batch review issues. Created April 16, 2014, 5:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « jni/Application.mk ('k') | jni/JniCallbacks.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef DEBUG
2 #define DEBUG 0
3 #endif
4
5 #ifdef DEBUG
6
7 #include <android/log.h>
8
9 #define D_INFO ANDROID_LOG_INFO
10 #define D_WARN ANDROID_LOG_WARN
11 #define D_ERROR ANDROID_LOG_ERROR
12 #define D(lvl, msg, args...) if(lvl) { __android_log_print(lvl, "JS", msg, ## ar gs ); __android_log_print(lvl, "JS", "\n"); }
13
14 #else
15
16 #define D(lvl, msg, args...)
17
18 #endif
OLDNEW
« no previous file with comments | « jni/Application.mk ('k') | jni/JniCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld