Browse Source

Android: Added preprocessor configurable log tag for debug ouput.

Branimir Karadžić 10 years ago
parent
commit
c96cd6e7fe
1 changed files with 4 additions and 1 deletions
  1. 4 1
      include/bx/debug.h

+ 4 - 1
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