MCPcopy Create free account
hub / github.com/crownengine/crown / debugOutput

Function debugOutput

3rdparty/bx/src/debug.cpp:115–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

traceVargsMethod · 0.85
debugPrintfVargsFunction · 0.85
writeMethod · 0.85

Calls 1

memCopyFunction · 0.85

Tested by

no test coverage detected