aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-01-22 01:03:41 +1000
committerGravatar axel <axel@liljencrantz.se>2007-01-22 01:03:41 +1000
commit98a6c491b1ab5d533c7410552309cdefe3687397 (patch)
treea126a6f3e4c48bd49e9517b35f46be9d37dcf821 /common.h
parent66c045c439937fbdc47090530ae378e80b2c521c (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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.h b/common.h
index f5603d41..f362f7f2 100644
--- a/common.h
+++ b/common.h
@@ -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(); \
}
/**