Correct braces around array of enum initializers.

This commit is contained in:
asuessenbach 2020-03-10 12:31:32 +01:00
parent 434c0326f4
commit d5dba659b4

View File

@ -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 += " } }";
}
}