summaryrefslogtreecommitdiffstats
path: root/generic/tclPanic.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclPanic.c')
-rw-r--r--generic/tclPanic.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/generic/tclPanic.c b/generic/tclPanic.c
index 5a05c24..dcceb25 100644
--- a/generic/tclPanic.c
+++ b/generic/tclPanic.c
@@ -23,7 +23,7 @@
* procedure.
*/
-static TCL_NORETURN1 Tcl_PanicProc *panicProc = NULL;
+static Tcl_PanicProc *panicProc = NULL;
/*
*----------------------------------------------------------------------
@@ -43,7 +43,7 @@ static TCL_NORETURN1 Tcl_PanicProc *panicProc = NULL;
const char *
Tcl_SetPanicProc(
- TCL_NORETURN1 Tcl_PanicProc *proc)
+ Tcl_PanicProc *proc)
{
panicProc = proc;
return Tcl_InitSubsystems();
@@ -71,7 +71,7 @@ Tcl_SetPanicProc(
*/
/* coverity[+kill] */
-void
+TCL_NORETURN void
Tcl_Panic(
const char *format,
...)
@@ -104,21 +104,21 @@ Tcl_Panic(
fprintf(stderr, "\n");
fflush(stderr);
#endif
-# if defined(__GNUC__)
- __builtin_trap();
-# elif defined(_WIN64)
- __debugbreak();
-# elif defined(_MSC_VER) && defined (_M_IX86)
- _asm {int 3}
-# elif defined(_WIN32)
- DebugBreak();
-# endif
+ }
+#if defined(__GNUC__)
+ __builtin_trap();
+#elif defined(_WIN64)
+ __debugbreak();
+#elif defined(_MSC_VER) && defined (_M_IX86)
+ _asm {int 3}
+#elif defined(_WIN32)
+ DebugBreak();
+#endif
#if defined(_WIN32)
- ExitProcess(1);
+ ExitProcess(1);
#else
- abort();
+ abort();
#endif
- }
}
/*