mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #538 from asuessenbach/enum
Correct braces around array of enum initializers.
This commit is contained in:
commit
0ee54e1249
@ -1491,12 +1491,12 @@ void VulkanHppGenerator::appendEnumInitializer(std::string& str, TypeData const&
|
||||
assert(arraySizes.size() == 1);
|
||||
int count = std::stoi(arraySizes[0]);
|
||||
assert(1 < count);
|
||||
str += "{ " + value;
|
||||
str += "{ { " + value;
|
||||
for (int i = 1; i < count; i++)
|
||||
{
|
||||
str += ", " + value;
|
||||
}
|
||||
str += " }";
|
||||
str += " } }";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user