From c96cd6e7fe7e954c0fdc20f284aa62bece78c560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 12 Sep 2015 10:11:18 -0700 Subject: [PATCH] Android: Added preprocessor configurable log tag for debug ouput. --- include/bx/debug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/bx/debug.h b/include/bx/debug.h index 7aff6b1..455069a 100644 --- a/include/bx/debug.h +++ b/include/bx/debug.h @@ -51,7 +51,10 @@ namespace bx inline void debugOutput(const char* _out) { #if BX_PLATFORM_ANDROID - __android_log_write(ANDROID_LOG_DEBUG, "", _out); +# ifndef BX_ANDROID_LOG_TAGS +# define BX_ANDROID_LOG_TAGS "" +# endif // BX_ANDROID_LOG_TAGS + __android_log_write(ANDROID_LOG_DEBUG, BX_ANDROID_LOG_TAG, _out); #elif BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT || BX_PLATFORM_XBOX360 OutputDebugStringA(_out); #elif BX_PLATFORM_IOS || BX_PLATFORM_OSX