Changed abort() in deftablePanic() to DebugBreak() for convenience (especially in wine where abort() is NOT caught by winedbg --gdb and for whatever reason I can't set a breakpoint with the same).
This commit is contained in:
parent
a0a6c2b112
commit
54a359d260
|
@ -140,10 +140,8 @@ printf("destroy\n");
|
|||
static void deftablePanic(const char *msg, DWORD lastError)
|
||||
{
|
||||
fprintf(stderr, "Table error: %s (last error %d)\n", msg, lastError);
|
||||
fprintf(stderr, "This is the default Table error handler function; programs that use Table should provide their own instead.\nThe program will now abort.\n");
|
||||
#undef abort
|
||||
abort();
|
||||
#define abort $$$$
|
||||
fprintf(stderr, "This is the default Table error handler function; programs that use Table should provide their own instead.\nThe program will now break into the debugger.\n");
|
||||
DebugBreak();
|
||||
}
|
||||
|
||||
void initTable(void (*panicfunc)(const char *msg, DWORD lastError))
|
||||
|
|
Loading…
Reference in New Issue