mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +00:00
WrapperGenerator: Don't emit code for imported enumerations
This commit is contained in:
parent
c38163494a
commit
144ef3eb9f
1 changed files with 2 additions and 0 deletions
|
@ -1408,6 +1408,8 @@ private:
|
||||||
)~~~");
|
)~~~");
|
||||||
|
|
||||||
for (auto& it : interface.enumerations) {
|
for (auto& it : interface.enumerations) {
|
||||||
|
if (!it.value.is_original_definition)
|
||||||
|
continue;
|
||||||
auto enum_generator = generator.fork();
|
auto enum_generator = generator.fork();
|
||||||
enum_generator.set("enum.type.name", it.key);
|
enum_generator.set("enum.type.name", it.key);
|
||||||
enum_generator.append(R"~~~(
|
enum_generator.append(R"~~~(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue