diff options
author | dgp <dgp@users.sourceforge.net> | 2020-01-08 23:00:06 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2020-01-08 23:00:06 (GMT) |
commit | f7076c6ce8636bde09c21ad46a580f865479ce65 (patch) | |
tree | 9453d1179d3c7ba1592d4736ea9ceb13ebf7fa8d /doc/Panic.3 | |
parent | 4afa38297142ce01a7e51a45b67a051b6244f8f7 (diff) | |
parent | 8ef7bd41b66cc77db4b4f07d09ed1faf96ab43c8 (diff) | |
download | tcl-f7076c6ce8636bde09c21ad46a580f865479ce65.zip tcl-f7076c6ce8636bde09c21ad46a580f865479ce65.tar.gz tcl-f7076c6ce8636bde09c21ad46a580f865479ce65.tar.bz2 |
merge 8.7
Diffstat (limited to 'doc/Panic.3')
-rw-r--r-- | doc/Panic.3 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/Panic.3 b/doc/Panic.3 index ba39ddf..53b84da 100644 --- a/doc/Panic.3 +++ b/doc/Panic.3 @@ -53,13 +53,13 @@ In a freshly loaded Tcl library, \fBTcl_Panic\fR prints the formatted error message to the standard error file of the process, and then calls \fBabort\fR to terminate the process. \fBTcl_Panic\fR does not return. On Windows, when a debugger is running, the formatted error -message is sent to the debugger in stead. If the windows executable +message is sent to the debugger instead. If the windows executable does not have a stderr channel (e.g. \fBwish.exe\fR), then a system dialog box is used to display the panic message. .PP If your application doesn't use \fBTcl_Main\fR or \fBTk_Main\fR and you want to implicitly use the stderr channel of your -application's C runtime (in stead of the stderr channel of the +application's C runtime (instead of the stderr channel of the C runtime used by Tcl), you can call \fBTcl_SetPanicProc\fR with \fBTcl_ConsolePanic\fR as its argument. On platforms which only have one C runtime (almost all platforms except Windows) @@ -86,6 +86,9 @@ The typical use of \fBTcl_SetPanicProc\fR arranges for the error message to be displayed or reported in a manner more suitable for the application or the platform. .PP +\fBTcl_SetPanicProc\fR can not be used in stub-enabled extensions. Its symbol +entry in the stub table is deprecated and it will be removed in Tcl 9.0. +.PP Although the primary callers of \fBTcl_Panic\fR are the procedures of the Tcl library, \fBTcl_Panic\fR is a public function and may be called by any extension or application that wishes to abort the process and @@ -93,11 +96,9 @@ have a panic message displayed the same way that panic messages from Tcl will be displayed. .PP \fBTcl_PanicVA\fR is the same as \fBTcl_Panic\fR except that instead of -taking a variable number of arguments it takes an argument list. This +taking a variable number of arguments it takes an argument list. Interfaces +using argument lists have been found to be nonportable in practice. This function is deprecated and will be removed in Tcl 9.0. -.PP -This function can not be used in stub-enabled extensions. Its symbol -entry in the stub table is deprecated and it will be removed in Tcl 9.0. .SH "SEE ALSO" abort(3), printf(3), exec(n), format(n) .SH KEYWORDS |