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
|
|
@ -712,7 +712,7 @@ public:
|
|||
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;
|
||||
|
|
@ -1586,7 +1586,7 @@ public:
|
|||
Delete(module_interfaces);
|
||||
module_interfaces = Copy(strvalue);
|
||||
} else {
|
||||
Printf(stderr, "%s : Line %d. Unrecognized pragma.\n", input_file, line_number);
|
||||
Swig_error(input_file, line_number, "Unrecognized pragma.\n");
|
||||
}
|
||||
Delete(strvalue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue