mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-09 22:20:07 +00:00
Extend enum type search in readEnums.
This commit is contained in:
parent
82d40057e0
commit
c2a3cfad1a
@ -12143,6 +12143,13 @@ void VulkanHppGenerator::readEnums( tinyxml2::XMLElement const * element )
|
||||
|
||||
// get the EnumData entry in enum map
|
||||
std::map<std::string, EnumData>::iterator enumIt = m_enums.find( name );
|
||||
if ( enumIt == m_enums.end() )
|
||||
{
|
||||
enumIt = std::find_if( m_enums.begin(),
|
||||
m_enums.end(),
|
||||
[&name]( std::pair<std::string, EnumData> const & enumData )
|
||||
{ return enumData.second.alias == name; } );
|
||||
}
|
||||
check( enumIt != m_enums.end(), line, "enum <" + name + "> is not listed as enum in the types section" );
|
||||
check( enumIt->second.values.empty(), line, "enum <" + name + "> already holds values" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user