mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Resolve two release build issues.
This commit is contained in:
parent
06b9e5baac
commit
03bf775566
@ -8097,11 +8097,13 @@ std::string VulkanHppGenerator::generateRAIIHandleConstructorArguments( std::str
|
|||||||
( specialPointerTypes.find( param.type.type ) == specialPointerTypes.end() ) )
|
( specialPointerTypes.find( param.type.type ) == specialPointerTypes.end() ) )
|
||||||
{
|
{
|
||||||
// this is supposed to be the returned size on an enumeration function!
|
// this is supposed to be the returned size on an enumeration function!
|
||||||
|
#if !defined(NDEBUG)
|
||||||
assert( param.type.type == "uint32_t" );
|
assert( param.type.type == "uint32_t" );
|
||||||
auto typeIt = std::find_if(
|
auto typeIt = std::find_if(
|
||||||
params.begin(), params.end(), [&handleType]( ParamData const & pd ) { return pd.type.type == handleType; } );
|
params.begin(), params.end(), [&handleType]( ParamData const & pd ) { return pd.type.type == handleType; } );
|
||||||
assert( typeIt != params.end() );
|
assert( typeIt != params.end() );
|
||||||
assert( typeIt->len == param.name );
|
assert( typeIt->len == param.name );
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if ( std::find_if( params.begin(),
|
else if ( std::find_if( params.begin(),
|
||||||
@ -8550,6 +8552,7 @@ std::string VulkanHppGenerator::generateRAIIHandleConstructorVector(
|
|||||||
lenIt = std::find_if( constructorIt->second.params.begin(),
|
lenIt = std::find_if( constructorIt->second.params.begin(),
|
||||||
constructorIt->second.params.end(),
|
constructorIt->second.params.end(),
|
||||||
[&lenParts]( ParamData const & pd ) { return pd.name == lenParts[0]; } );
|
[&lenParts]( ParamData const & pd ) { return pd.name == lenParts[0]; } );
|
||||||
|
#if !defined(NDEBUG)
|
||||||
assert( lenIt != constructorIt->second.params.end() );
|
assert( lenIt != constructorIt->second.params.end() );
|
||||||
auto structureIt = m_structures.find( lenIt->type.type );
|
auto structureIt = m_structures.find( lenIt->type.type );
|
||||||
assert( structureIt != m_structures.end() );
|
assert( structureIt != m_structures.end() );
|
||||||
@ -8558,6 +8561,7 @@ std::string VulkanHppGenerator::generateRAIIHandleConstructorVector(
|
|||||||
[&lenParts]( MemberData const & md )
|
[&lenParts]( MemberData const & md )
|
||||||
{ return md.name == lenParts[1]; } ) != structureIt->second.members.end() );
|
{ return md.name == lenParts[1]; } ) != structureIt->second.members.end() );
|
||||||
assert( constructorIt->second.successCodes.size() == 1 );
|
assert( constructorIt->second.successCodes.size() == 1 );
|
||||||
|
#endif
|
||||||
vectorSize = startLowerCase( stripPrefix( lenParts[0], "p" ) ) + "." + lenParts[1];
|
vectorSize = startLowerCase( stripPrefix( lenParts[0], "p" ) ) + "." + lenParts[1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user