Correct display of templates in warning message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
89c3acea19
commit
e024efafce
1 changed files with 1 additions and 1 deletions
|
|
@ -2559,7 +2559,7 @@ int Language::constructorDeclaration(Node *n) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (name && (Cmp(Swig_scopename_last(name), Swig_scopename_last(ClassName))) && !(Getattr(n, "template"))) {
|
if (name && (Cmp(Swig_scopename_last(name), Swig_scopename_last(ClassName))) && !(Getattr(n, "template"))) {
|
||||||
Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type.\n", name);
|
Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type.\n", SwigType_namestr(name));
|
||||||
Swig_restore(n);
|
Swig_restore(n);
|
||||||
return SWIG_NOWRAP;
|
return SWIG_NOWRAP;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue