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