diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-16 15:07:55 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-16 15:07:55 -0500 |
| commit | 54a359d260fe12b3e0dad71640a47a8235fc4b52 (patch) | |
| tree | bef6123f72d075d6177a8216ddbbe54d339f0db0 | |
| parent | a0a6c2b11228f05f1a98879e0e52e04df0bf119f (diff) | |
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).
| -rw-r--r-- | wintable/new/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wintable/new/main.c b/wintable/new/main.c index 7d04efa..347e181 100644 --- a/wintable/new/main.c +++ b/wintable/new/main.c @@ -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)) |
