Correct file and line number display for some error messages, these now also result in exiting with an error.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4f88d641af
commit
e81bfb86c0
6 changed files with 27 additions and 24 deletions
|
|
@ -1788,7 +1788,7 @@ done:
|
|||
Replaceall(tm, "$target", name);
|
||||
Printf(s_vinit, "%s\n", tm);
|
||||
} else {
|
||||
Printf(stderr, "%s: Line %d, Unable to link with type %s\n", input_file, line_number, SwigType_str(t, 0));
|
||||
Swig_error(input_file, line_number, "Unable to link with type %s\n", SwigType_str(t, 0));
|
||||
}
|
||||
|
||||
/* Now generate PHP -> C sync blocks */
|
||||
|
|
@ -1798,7 +1798,7 @@ done:
|
|||
Replaceall(tm, "$symname", iname);
|
||||
Printf(f_c->code, "%s\n", tm);
|
||||
} else {
|
||||
Printf(stderr,"%s: Line %d, Unable to link with type %s\n", input_file, line_number, SwigType_str(t, 0));
|
||||
Swig_error(input_file, line_number, "Unable to link with type %s\n", SwigType_str(t, 0));
|
||||
}
|
||||
*/
|
||||
/* Now generate C -> PHP sync blocks */
|
||||
|
|
@ -1810,7 +1810,7 @@ done:
|
|||
Replaceall(tm, "$symname", iname);
|
||||
Printf(f_php->code, "%s\n", tm);
|
||||
} else {
|
||||
Printf(stderr,"%s: Line %d, Unable to link with type %s\n", input_file, line_number, SwigType_str(t, 0));
|
||||
Swig_error(input_file, line_number, "Unable to link with type %s\n", SwigType_str(t, 0));
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue