Fix some warning messages to correctly show class names.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-05-23 20:24:21 +00:00
commit 706736a73d

View file

@ -2623,7 +2623,7 @@ int Language::constructorDeclaration(Node *n) {
Delete(expected_name_resolved);
}
if (illegal_name) {
Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", SwigType_namestr(name));
Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(name));
Swig_restore(n);
return SWIG_NOWRAP;
}
@ -2760,7 +2760,7 @@ int Language::destructorDeclaration(Node *n) {
}
if (illegal_name) {
Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", SwigType_namestr(name));
Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", Swig_name_decl(name));
Swig_restore(n);
Delete(expected_name);
return SWIG_NOWRAP;