diff options
author | escoffon <escoffon@noemail.net> | 1998-08-06 12:15:49 (GMT) |
---|---|---|
committer | escoffon <escoffon@noemail.net> | 1998-08-06 12:15:49 (GMT) |
commit | 77ba85e93d9680de7711d2289791f888d136152e (patch) | |
tree | c8e4bb4c3fda7fb8e9c6e255fe54fb8924f8ac38 /generic/tclProc.c | |
parent | 1c9da5504983929999ea238f5940753bfc65a199 (diff) | |
download | tcl-77ba85e93d9680de7711d2289791f888d136152e.zip tcl-77ba85e93d9680de7711d2289791f888d136152e.tar.gz tcl-77ba85e93d9680de7711d2289791f888d136152e.tar.bz2 |
changed the panic in TclProcCompileProc when a precompiled script jumps
interps to an error instead.
FossilOrigin-Name: b0f669de2990bebf7409c777d4e83766ff3ccfb3
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r-- | generic/tclProc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c index ea36243..8bd19d3 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * SCCS: %Z% $Id: tclProc.c,v 1.12 1998/07/28 13:55:21 escoffon Exp $ + * SCCS: %Z% $Id: tclProc.c,v 1.13 1998/08/06 12:15:50 escoffon Exp $ */ #include "tclInt.h" @@ -1023,7 +1023,9 @@ TclProcCompileProc(interp, procPtr, bodyPtr, nsPtr, description, procName) || (codePtr->nsEpoch != nsPtr->resolverEpoch)) { if (codePtr->flags & TCL_BYTECODE_PRECOMPILED) { if (codePtr->iPtr != iPtr) { - panic("TclProcCompileProc: compiled body jumped interps"); + Tcl_AppendResult(interp, + "a precompiled script jumped interps", NULL); + return TCL_ERROR; } codePtr->compileEpoch = iPtr->compileEpoch; codePtr->nsEpoch = nsPtr->resolverEpoch; |