mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #1267 from asuessenbach/assert
Resolved an assertion in readTypesTypeStruct.
This commit is contained in:
commit
91cd6b0443
@ -13748,7 +13748,7 @@ void VulkanHppGenerator::readTypesTypeStruct( tinyxml2::XMLElement const * eleme
|
|||||||
checkAttributes( line,
|
checkAttributes( line,
|
||||||
attributes,
|
attributes,
|
||||||
{ { "category", { isUnion ? "union" : "struct" } }, { "name", {} } },
|
{ { "category", { isUnion ? "union" : "struct" } }, { "name", {} } },
|
||||||
{ { "allowduplicate", { "true" } }, { "comment", {} }, { "returnedonly", { "true" } }, { "structextends", {} } } );
|
{ { "allowduplicate", { "false", "true" } }, { "comment", {} }, { "returnedonly", { "true" } }, { "structextends", {} } } );
|
||||||
std::vector<tinyxml2::XMLElement const *> children = getChildElements( element );
|
std::vector<tinyxml2::XMLElement const *> children = getChildElements( element );
|
||||||
checkElements( line, children, {}, { "member", "comment" } );
|
checkElements( line, children, {}, { "member", "comment" } );
|
||||||
|
|
||||||
@ -13760,8 +13760,7 @@ void VulkanHppGenerator::readTypesTypeStruct( tinyxml2::XMLElement const * eleme
|
|||||||
{
|
{
|
||||||
if ( attribute.first == "allowduplicate" )
|
if ( attribute.first == "allowduplicate" )
|
||||||
{
|
{
|
||||||
assert( attribute.second == "true" );
|
allowDuplicate = ( attribute.second == "true" );
|
||||||
allowDuplicate = true;
|
|
||||||
}
|
}
|
||||||
else if ( attribute.first == "category" )
|
else if ( attribute.first == "category" )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user