summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-06-22 10:51:04 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-06-22 10:51:04 (GMT)
commite1fda1fb4ff4e7112f2dac43d1460a3c69a6e036 (patch)
tree5c72174728826ad431deabc97f7e66399f8d3fe3 /win/tclWinFile.c
parenta56a79105488bc24fcbbb1bb41e9143e9cdcda2d (diff)
downloadtcl-e1fda1fb4ff4e7112f2dac43d1460a3c69a6e036.zip
tcl-e1fda1fb4ff4e7112f2dac43d1460a3c69a6e036.tar.gz
tcl-e1fda1fb4ff4e7112f2dac43d1460a3c69a6e036.tar.bz2
Restored the possibility to define a panicproc as
low memory handler See: [#1446864]
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 2cc14ec..4a49b6c 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -819,6 +819,16 @@ tclWinDebugPanic(
MessageBoxW(NULL, msgString, L"Fatal Error",
MB_ICONSTOP | MB_OK | MB_TASKMODAL | MB_SETFOREGROUND);
}
+#if defined(__GNUC__)
+ __builtin_trap();
+#elif defined(_WIN64)
+ __debugbreak();
+#elif defined(_MSC_VER)
+ _asm {int 3}
+#else
+ DebugBreak();
+#endif
+ abort();
}
/*