diff options
-rw-r--r-- | src/threading.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/threading.c b/src/threading.c index 7898d1b..0a4c62a 100644 --- a/src/threading.c +++ b/src/threading.c | |||
@@ -86,9 +86,13 @@ THE SOFTWARE. | |||
86 | #if defined( PLATFORM_XBOX) || defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) | 86 | #if defined( PLATFORM_XBOX) || defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) |
87 | static void FAIL( char const* funcname, int rc) | 87 | static void FAIL( char const* funcname, int rc) |
88 | { | 88 | { |
89 | #if defined( PLATFORM_XBOX) | ||
90 | fprintf( stderr, "%s() failed! (%d)\n", funcname, rc ); | ||
91 | #else // PLATFORM_XBOX | ||
89 | char buf[256]; | 92 | char buf[256]; |
90 | FormatMessageA( FORMAT_MESSAGE_FROM_SYSTEM, NULL, rc, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, 256, NULL); | 93 | FormatMessageA( FORMAT_MESSAGE_FROM_SYSTEM, NULL, rc, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, 256, NULL); |
91 | fprintf( stderr, "%s() failed! [GetLastError() -> %d] '%s'", funcname, rc, buf); | 94 | fprintf( stderr, "%s() failed! [GetLastError() -> %d] '%s'", funcname, rc, buf); |
95 | #endif // PLATFORM_XBOX | ||
92 | #ifdef _MSC_VER | 96 | #ifdef _MSC_VER |
93 | __debugbreak(); // give a chance to the debugger! | 97 | __debugbreak(); // give a chance to the debugger! |
94 | #endif // _MSC_VER | 98 | #endif // _MSC_VER |