📄 allowexc.3
字号:
'\"'\" Copyright (c) 1989-1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: AllowExc.3,v 1.3 2002/03/29 21:01:11 dgp Exp $'\" .so man.macros.TH Tcl_AllowExceptions 3 7.4 Tcl "Tcl Library Procedures".BS.SH NAMETcl_AllowExceptions \- allow all exceptions in next script evaluation.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.sp\fBTcl_AllowExceptions\fR(\fIinterp\fR).SH ARGUMENTS.AS Tcl_Interp *doublePtr.AP Tcl_Interp *interp inInterpreter in which script will be evaluated..BE.SH DESCRIPTION.PPIf a script is evaluated at top-level (i.e. no other scripts arepending evaluation when the script is invoked), and if the scriptterminates with a completion code other than TCL_OK, TCL_ERRORor TCL_RETURN, then Tcl normally converts this into a TCL_ERRORreturn with an appropriate message. The particular scriptevaluation procedures of Tcl that act in the manner are\fBTcl_EvalObjEx\fR, \fBTcl_EvalObjv\fR, \fBTcl_Eval\fR, \fBTcl_EvalEx\fR,\fBTcl_GlobalEval\fR, \fBTcl_GlobalEvalObj\fR, \fBTcl_VarEval\fR and\fBTcl_VarEvalVA\fR. .PPHowever, if \fBTcl_AllowExceptions\fR is invoked immediately beforecalling one of those a procedures, then arbitrary completioncodes are permitted from the script, and they are returned withoutmodification.This is useful in cases where the caller can deal with exceptionssuch as TCL_BREAK or TCL_CONTINUE in a meaningful way..SH KEYWORDScontinue, break, exception, interpreter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -