mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Debug output to stdout.
This commit is contained in:
@@ -19,6 +19,8 @@ extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char* _
|
||||
# include <CoreFoundation/CFString.h>
|
||||
extern "C" void NSLog(CFStringRef _format, ...);
|
||||
# endif // defined(__OBJC__)
|
||||
#elif 0 // BX_PLATFORM_EMSCRIPTEN
|
||||
# include <emscripten.h>
|
||||
#else
|
||||
# include <stdio.h>
|
||||
#endif // BX_PLATFORM_WINDOWS
|
||||
@@ -53,9 +55,11 @@ namespace bx
|
||||
# else
|
||||
NSLog(__CFStringMakeConstantString("%s"), _out);
|
||||
# endif // defined(__OBJC__)
|
||||
#elif 0 // BX_PLATFORM_EMSCRIPTEN
|
||||
emscripten_log(EM_LOG_CONSOLE, "%s", _out);
|
||||
#else
|
||||
fputs(_out, stderr);
|
||||
fflush(stderr);
|
||||
fputs(_out, stdout);
|
||||
fflush(stdout);
|
||||
#endif // BX_PLATFORM_
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user