9extern void _gsDebugAssert (
const char *
string);
11static gsDebugAssertCallback gsDebugAssertHandler = _gsDebugAssert;
15void gsDebugAssertCallbackSet(gsDebugAssertCallback theCallback)
18 gsDebugAssertHandler = theCallback;
20 gsDebugAssertHandler = _gsDebugAssert;
25void gsDebugAssert (
const char *szError,
const char *szText,
const char *szFile,
int line)
29 sprintf(&String[0], szError,szText,szFile,line);
32 (*gsDebugAssertHandler)(String);
42 void _gsDebugAssert (
const char *
string)
45 OutputDebugString(
string);
51 #pragma warning(disable: 4127)
55 void _gsDebugAssert (
const char *
string)
70 OutputDebugStringA(
string);
72 #ifndef GS_ASSERT_NO_MESSAGEBOX
74 int rcode = MessageBoxA(NULL,
string,
"Assert Failed",MB_ABORTRETRYIGNORE|MB_ICONHAND|MB_SETFOREGROUND|MB_TASKMODAL);
97 void _gsDebugAssert (
const char *
string)
118 void _gsDebugAssert (
const char *
string)
121 scePrintf(
"%s",
string);
128 void _gsDebugAssert (
const char *
string)
130 printf(
"%s",
string);
140 void _gsDebugAssert (
const char *
string)
142 printf(
"%s",
string);
152 void _gsDebugAssert (
const char *
string)
155 OS_TPanic(
"%s",
string);
161#elif defined(_REVOLUTION)
162 void _gsDebugAssert(
const char *
string)
170 void _gsDebugAssert (
const char *
string)
173 printf(
"%s",
string);