Merge pull request #538 from asuessenbach/enum

Correct braces around array of enum initializers.
This commit is contained in:
Andreas Süßenbach 2020-03-10 14:06:43 +01:00 committed by GitHub
commit 0ee54e1249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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