Improve error given for unsupported typemap in C++ wrappers
This error message should never happen, normally, but still make it more informative if it does, as it could be just completely useless if there was no sym:name attribute on the node (as is often the case for the function parameters, for example).
This commit is contained in:
parent
9a974040fa
commit
4a3f4ba896
1 changed files with 4 additions and 3 deletions
|
|
@ -840,18 +840,19 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
String* const type = Getattr(n, "type");
|
||||
|
||||
if (typeKind == Type_Max) {
|
||||
if (Strstr(s, "resolved_type")) {
|
||||
Swig_warning(WARN_C_UNSUPPORTTED, input_file, line_number,
|
||||
"Unsupported typemap used for \"%s\"\n",
|
||||
Getattr(n, "sym:name")
|
||||
"Unsupported typemap \"%s\" used for type \"%s\" of \"%s\"\n",
|
||||
s, type, Getattr(n, "name")
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
String* const type = Getattr(n, "type");
|
||||
scoped_dohptr resolved_type(SwigType_typedef_resolve_all(type));
|
||||
scoped_dohptr stripped_type(SwigType_strip_qualifiers(resolved_type));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue