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: Removed newly added neetutils code Created April 25, 2014, 9:31 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
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

Powered by Google App Engine
This is Rietveld