mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #58 from asuessenbach/fix_const
Added missing const qualifier for member functions in non-enhanced mo…
This commit is contained in:
commit
41baebc373
@ -2205,7 +2205,12 @@ void writeTypeCommandStandard(std::ofstream & ofs, std::string const& indentatio
|
||||
}
|
||||
argEncountered = true;
|
||||
}
|
||||
ofs << " )" << std::endl
|
||||
ofs << " )";
|
||||
if (commandData.handleCommand)
|
||||
{
|
||||
ofs << " const";
|
||||
}
|
||||
ofs << std::endl
|
||||
<< indentation << "{" << std::endl
|
||||
<< indentation << " ";
|
||||
bool castReturn = false;
|
||||
@ -2543,7 +2548,16 @@ void writeTypeHandle(std::ofstream & ofs, DependencyData const& dependencyData,
|
||||
std::string className = dependencyData.name;
|
||||
std::string functionName = determineFunctionName(dep->name, cit->second);
|
||||
|
||||
bool hasPointers = hasPointerArguments(cit->second);
|
||||
if (!hasPointers)
|
||||
{
|
||||
ofs << "#ifndef VKCPP_ENHANCED_MODE" << std::endl;
|
||||
}
|
||||
writeTypeCommandStandard(ofs, " ", functionName, *dep, cit->second, vkTypes);
|
||||
if (!hasPointers)
|
||||
{
|
||||
ofs << "#endif /*!VKCPP_ENHANCED_MODE*/" << std::endl;
|
||||
}
|
||||
|
||||
ofs << std::endl
|
||||
<< "#ifdef VKCPP_ENHANCED_MODE" << std::endl;
|
||||
|
412
vulkan/vk_cpp.h
412
vulkan/vk_cpp.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user