summaryrefslogtreecommitdiffstats
path: root/generic/tclPanic.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-12-15 14:03:51 (GMT)
committernijtmans <nijtmans@noemail.net>2010-12-15 14:03:51 (GMT)
commit8ff9f4bf3bc7b5eee04693102853e1329fa91c3b (patch)
treeebcfac9740cbab00fdbdceeeec285e49d3c696c3 /generic/tclPanic.c
parentd054c356d2a214d2442e7e4c0369309a13dccc57 (diff)
downloadtcl-8ff9f4bf3bc7b5eee04693102853e1329fa91c3b.zip
tcl-8ff9f4bf3bc7b5eee04693102853e1329fa91c3b.tar.gz
tcl-8ff9f4bf3bc7b5eee04693102853e1329fa91c3b.tar.bz2
Restore abort() in Tcl_Panic() as it was before.
[Patch 3124554] use ExitProcess() here, like in wish. FossilOrigin-Name: aca7d3274fdaabe6356c0b2b5b72ceac8b784712
Diffstat (limited to 'generic/tclPanic.c')
-rw-r--r--generic/tclPanic.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/generic/tclPanic.c b/generic/tclPanic.c
index 73059a0..d5d6142 100644
--- a/generic/tclPanic.c
+++ b/generic/tclPanic.c
@@ -12,11 +12,10 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPanic.c,v 1.16 2010/12/13 13:57:58 nijtmans Exp $
+ * RCS: @(#) $Id: tclPanic.c,v 1.17 2010/12/15 14:03:52 nijtmans Exp $
*/
#include "tclInt.h"
-#undef Tcl_Panic
/*
* The panicProc variable contains a pointer to an application specific panic
@@ -92,17 +91,7 @@ Tcl_PanicVA(
fflush(stderr);
}
/* In case the users panic proc does not abort, we do it here */
-#ifdef __GNUC__
- __builtin_trap();
-#endif
-#ifdef _WIN32
-# ifdef _MSC_VER
- DebugBreak();
-# endif
- ExitProcess(1);
-#else
abort();
-#endif
}
/*