Merge pull request #1100 from asuessenbach/void

Fix handling of "void *" in generateCommandResultGetValue
This commit is contained in:
Andreas Süßenbach 2021-10-14 15:51:14 +02:00 committed by GitHub
commit 4573a7cd39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3485,9 +3485,7 @@ std::string VulkanHppGenerator::generateCommandResultGetValue( std::string const
generateArgumentListEnhanced( commandData.params, skippedParams, {}, definition, false, false, true ); generateArgumentListEnhanced( commandData.params, skippedParams, {}, definition, false, false, true );
std::string commandName = generateCommandName( name, commandData.params, initialSkipCount, m_tags ); std::string commandName = generateCommandName( name, commandData.params, initialSkipCount, m_tags );
std::string nodiscard = generateNoDiscard( 1 < commandData.successCodes.size(), 1 < commandData.errorCodes.size() ); std::string nodiscard = generateNoDiscard( 1 < commandData.successCodes.size(), 1 < commandData.errorCodes.size() );
std::string returnBaseType = commandData.params[returnParamIndex].type.compose(); std::string returnBaseType = trimEnd( stripPostfix( commandData.params[returnParamIndex].type.compose(), "*" ) );
assert( endsWith( returnBaseType, "*" ) );
returnBaseType.pop_back();
std::string typenameT; std::string typenameT;
if ( returnBaseType == "void" ) if ( returnBaseType == "void" )
{ {