Android: Added preprocessor configurable log tag for debug ouput.

This commit is contained in:
Branimir Karadžić
2015-09-12 10:11:18 -07:00
parent e5293b08af
commit c96cd6e7fe

View File

@@ -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