fix seterrormsg as reported by Colin McDonald
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ae8e5fbe73
commit
50c10593e6
1 changed files with 3 additions and 0 deletions
|
|
@ -59,9 +59,12 @@ SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
|
||||||
{
|
{
|
||||||
Tcl_ResetResult(interp);
|
Tcl_ResetResult(interp);
|
||||||
Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
|
Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
|
||||||
|
Tcl_AppendResult(interp, ctype, " ", mesg, NULL);
|
||||||
|
/*
|
||||||
Tcl_AddErrorInfo(interp, ctype);
|
Tcl_AddErrorInfo(interp, ctype);
|
||||||
Tcl_AddErrorInfo(interp, " ");
|
Tcl_AddErrorInfo(interp, " ");
|
||||||
Tcl_AddErrorInfo(interp, mesg);
|
Tcl_AddErrorInfo(interp, mesg);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
SWIGINTERNINLINE void
|
SWIGINTERNINLINE void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue