Fix inline enum (#2393)

This commit is contained in:
Ethan Conneely 2022-03-17 10:52:13 +00:00 committed by GitHub
parent 4954778f68
commit 3d812f8d0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ int main(int argc, char* argv[])
for (int i = 0; i < linesCount; i++)
{
// Read enum line
if (IsTextEqual(lines[i], "typedef enum {", 14))
if (IsTextEqual(lines[i], "typedef enum {", 14) && lines[i][TextLength(lines[i])-1] != ';') // ignore inline enums
{
// Keep the line position in the array of lines,
// so, we can scan that position and following lines