diff options
author | 2007-01-22 01:03:41 +1000 | |
---|---|---|
committer | 2007-01-22 01:03:41 +1000 | |
commit | 98a6c491b1ab5d533c7410552309cdefe3687397 (patch) | |
tree | a126a6f3e4c48bd49e9517b35f46be9d37dcf821 /common.h | |
parent | 66c045c439937fbdc47090530ae378e80b2c521c (diff) |
Print stack trace when execting due to fatal problem or bug
darcs-hash:20070121150341-ac50b-66b86014963568bf402a76d5beb7c1d4e188c5f7.gz
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -91,9 +91,9 @@ extern wchar_t *program_name; } /** - Cause fish to crash. If supported, print a backtrace first. + Pause for input, then exit the program. If supported, print a backtrace first. */ -#define CRASH() \ +#define FATAL_EXIT() \ { \ char c; \ show_stackframe(); \ @@ -111,7 +111,7 @@ extern wchar_t *program_name; L"fish: Out of memory on line %d of file %s, shutting down fish\n", \ __LINE__, \ __FILE__ ); \ - CRASH(); \ + FATAL_EXIT(); \ } /** |