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:
Pietro Gagliardi 2014-12-16 15:07:55 -05:00
parent a0a6c2b112
commit 54a359d260
1 changed files with 2 additions and 4 deletions

View File

@ -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))