diff options
Diffstat (limited to 'tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h')
| -rw-r--r-- | tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h b/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h index 8502bb0e5..5e9c7b386 100644 --- a/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h +++ b/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h @@ -19,11 +19,19 @@ #if (HAVE_ANDROID_OS == 1) # include <cutils/log.h> # define ERR(...) LOGE(__VA_ARGS__) -# define DBG(...) LOGD(__VA_ARGS__) +# ifdef EMUGL_DEBUG +# define DBG(...) LOGD(__VA_ARGS__) +# else +# define DBG(...) ((void)0) +# endif #else # include <stdio.h> # define ERR(...) fprintf(stderr, __VA_ARGS__) -# define DBG(...) fprintf(stderr, __VA_ARGS__) +# ifdef EMUGL_DEBUG +# define DBG(...) fprintf(stderr, __VA_ARGS__) +# else +# define DBG(...) ((void)0) +# endif #endif #endif |
