diff options
author | dgp <dgp@users.sourceforge.net> | 2015-12-15 15:16:02 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2015-12-15 15:16:02 (GMT) |
commit | d1ba482f0b2255f721d22c806d2f4ae1a9acb222 (patch) | |
tree | 831a54f85f456df0be3268ef0ab7ded7a7794780 | |
parent | b8ee717f77fc6f8add7137b14be34357192aacea (diff) | |
download | tcl-dgp_tailcall_errorinfo_alt.zip tcl-dgp_tailcall_errorinfo_alt.tar.gz tcl-dgp_tailcall_errorinfo_alt.tar.bz2 |
Different solution to the tailcall impact on -errorinfo.dgp_tailcall_errorinfo_alt
-rw-r--r-- | generic/tclBasic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 5c5bc64..10740a1 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -8386,6 +8386,9 @@ TailcallCleanup( Tcl_Interp *interp, int result) { + Interp *iPtr = (Interp *) interp; + + iPtr->flags |= ERR_ALREADY_LOGGED; Tcl_DecrRefCount((Tcl_Obj *) data[0]); return result; } |