summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-12-15 15:16:02 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-12-15 15:16:02 (GMT)
commitd1ba482f0b2255f721d22c806d2f4ae1a9acb222 (patch)
tree831a54f85f456df0be3268ef0ab7ded7a7794780 /generic
parentb8ee717f77fc6f8add7137b14be34357192aacea (diff)
downloadtcl-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
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBasic.c3
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;
}