mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb/IDL/Codegen: Generate cpp_type for enums
This commit is contained in:
parent
3f4ed782b4
commit
02a85d8259
Notes:
sideshowbarker
2024-07-17 02:42:21 +09:00
Author: https://github.com/stelar7 Commit: https://github.com/SerenityOS/serenity/commit/02a85d8259 Pull-request: https://github.com/SerenityOS/serenity/pull/22346 Reviewed-by: https://github.com/ADKaster
1 changed files with 3 additions and 0 deletions
|
@ -228,6 +228,9 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
|
|||
}
|
||||
}
|
||||
|
||||
if (interface.enumerations.contains(type.name()))
|
||||
return { .name = type.name(), .sequence_storage_type = SequenceStorageType::Vector };
|
||||
|
||||
dbgln("Unimplemented type for idl_type_name_to_cpp_type: {}{}", type.name(), type.is_nullable() ? "?" : "");
|
||||
TODO();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue