mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Removed an invalid error check on structs. (#1828)
This commit is contained in:
parent
695de1bc3a
commit
19f90f043f
@ -14299,9 +14299,6 @@ void VulkanHppGenerator::readStructMember( tinyxml2::XMLElement const * element,
|
|||||||
{
|
{
|
||||||
auto lenMemberIt = findStructMemberIt( memberData.lenExpressions[0], members );
|
auto lenMemberIt = findStructMemberIt( memberData.lenExpressions[0], members );
|
||||||
checkForError( lenMemberIt != members.end(), line, "member attribute <len> holds unknown value <" + memberData.lenExpressions[0] + ">" );
|
checkForError( lenMemberIt != members.end(), line, "member attribute <len> holds unknown value <" + memberData.lenExpressions[0] + ">" );
|
||||||
checkForError( lenMemberIt->type.prefix.empty(),
|
|
||||||
line,
|
|
||||||
"member attribute <len> references a member of unexpected type <" + lenMemberIt->type.compose( "VULKAN_HPP_NAMESPACE" ) + ">" );
|
|
||||||
memberData.lenMembers.push_back( { memberData.lenExpressions[0], std::distance( members.cbegin(), lenMemberIt ) } );
|
memberData.lenMembers.push_back( { memberData.lenExpressions[0], std::distance( members.cbegin(), lenMemberIt ) } );
|
||||||
}
|
}
|
||||||
if ( 1 < memberData.lenExpressions.size() )
|
if ( 1 < memberData.lenExpressions.size() )
|
||||||
|
Loading…
Reference in New Issue
Block a user