Improve interface feature checks
Use common code for missing feature:interface:name attribute checks Check that all base classes are also marked as interfaces
This commit is contained in:
parent
67f38e8124
commit
c33b4dc34e
3 changed files with 18 additions and 8 deletions
|
|
@ -2071,10 +2071,6 @@ public:
|
|||
if (Getattr(n, "feature:interface")) {
|
||||
interface_class_code = NewStringEmpty();
|
||||
String *interface_name = Getattr(n, "feature:interface:name");
|
||||
if (!interface_name) {
|
||||
Swig_error(Getfile(n), Getline(n), "Interface %s has no name attribute", proxy_class_name);
|
||||
SWIG_exit(EXIT_FAILURE);
|
||||
}
|
||||
String *output_directory = outputDirectory(nspace);
|
||||
f_interface = getOutputFile(output_directory, interface_name);
|
||||
addOpenNamespace(nspace, f_interface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue