| 112 | } |
| 113 | |
| 114 | void debugOutput(const char* _out) |
| 115 | { |
| 116 | #if BX_CRT_NONE |
| 117 | crt0::debugOutput(_out); |
| 118 | #elif BX_PLATFORM_ANDROID |
| 119 | # ifndef BX_ANDROID_LOG_TAG |
| 120 | # define BX_ANDROID_LOG_TAG "" |
| 121 | # endif // BX_ANDROID_LOG_TAG |
| 122 | __android_log_write(ANDROID_LOG_DEBUG, BX_ANDROID_LOG_TAG, _out); |
| 123 | #elif BX_PLATFORM_WINDOWS \ |
| 124 | || BX_PLATFORM_WINRT \ |
| 125 | || BX_PLATFORM_XBOXONE |
| 126 | OutputDebugStringA(_out); |
| 127 | #elif BX_PLATFORM_IOS \ |
| 128 | || BX_PLATFORM_OSX \ |
| 129 | || BX_PLATFORM_VISIONOS |
| 130 | # if defined(__OBJC__) |
| 131 | NSLog(@"%s", _out); |
| 132 | # else |
| 133 | NSLog(__CFStringMakeConstantString("%s"), _out); |
| 134 | # endif // defined(__OBJC__) |
| 135 | #elif BX_PLATFORM_EMSCRIPTEN |
| 136 | emscripten_log(EM_LOG_CONSOLE, "%s", _out); |
| 137 | #else |
| 138 | fputs(_out, stdout); |
| 139 | fflush(stdout); |
| 140 | #endif // BX_PLATFORM_ |
| 141 | } |
| 142 | |
| 143 | void debugOutput(const StringView& _str) |
| 144 | { |
no test coverage detected