mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #733 from asuessenbach/len
Reintroduce support of separator '::' for len attributes.
This commit is contained in:
commit
a10771c7d5
@ -2405,6 +2405,11 @@ void VulkanHppGenerator::appendFunctionBodyEnhancedLocalReturnVariableVectorSize
|
|||||||
// -> replace the '->' by '.' and filter out the leading 'p' to access that value
|
// -> replace the '->' by '.' and filter out the leading 'p' to access that value
|
||||||
size = startLowerCase( stripPrefix( params[returnParamIndex].len, "p" ) );
|
size = startLowerCase( stripPrefix( params[returnParamIndex].len, "p" ) );
|
||||||
size_t pos = size.find( "->" );
|
size_t pos = size.find( "->" );
|
||||||
|
if ( pos == std::string::npos )
|
||||||
|
{
|
||||||
|
// other notation possibility: ::
|
||||||
|
pos = size.find( "::" );
|
||||||
|
}
|
||||||
assert( pos != std::string::npos );
|
assert( pos != std::string::npos );
|
||||||
size.replace( pos, 2, "." );
|
size.replace( pos, 2, "." );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user