From 8d23f0ed8c41fe8d231e9d39b490e33c30a70d43 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Thu, 14 Oct 2021 13:44:44 +0200 Subject: [PATCH] Fix handling of "void *" in generateCommandResultGetValue --- VulkanHppGenerator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index a121fd4..69c2630 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -3485,9 +3485,7 @@ std::string VulkanHppGenerator::generateCommandResultGetValue( std::string const generateArgumentListEnhanced( commandData.params, skippedParams, {}, definition, false, false, true ); std::string commandName = generateCommandName( name, commandData.params, initialSkipCount, m_tags ); std::string nodiscard = generateNoDiscard( 1 < commandData.successCodes.size(), 1 < commandData.errorCodes.size() ); - std::string returnBaseType = commandData.params[returnParamIndex].type.compose(); - assert( endsWith( returnBaseType, "*" ) ); - returnBaseType.pop_back(); + std::string returnBaseType = trimEnd( stripPostfix( commandData.params[returnParamIndex].type.compose(), "*" ) ); std::string typenameT; if ( returnBaseType == "void" ) {