From 16ad9fbd73b154efae96610ae7004c8522571f8e Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 6 Jun 2021 10:15:15 +0200 Subject: [PATCH] Fix parsing multiple struct fields defined in one line --- parser/raylib_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/raylib_parser.c b/parser/raylib_parser.c index 141901f51..ac40570b3 100644 --- a/parser/raylib_parser.c +++ b/parser/raylib_parser.c @@ -589,7 +589,7 @@ void GetDataTypeAndName(const char *typeName, int typeNameLen, char *type, char { for (int k = typeNameLen; k > 0; k--) { - if (typeName[k] == ' ') + if (typeName[k] == ' ' && typeName[k - 1] != ',') { // Function name starts at this point (and ret type finishes at this point) MemoryCopy(type, typeName, k);