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
|
|
@ -1196,7 +1196,7 @@ MODULA3():
|
|||
Swig_restore(n);
|
||||
native_function_flag = false;
|
||||
} else {
|
||||
Printf(stderr, "%s : Line %d. No return type for %%native method %s.\n", input_file, line_number, Getattr(n, "wrap:name"));
|
||||
Swig_error(input_file, line_number, "No return type for %%native method %s.\n", Getattr(n, "wrap:name"));
|
||||
}
|
||||
|
||||
return SWIG_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue