瀏覽代碼

Fix parsing multiple struct fields defined in one line (#1813)

Deathbat2190 4 年之前
父節點
當前提交
9681a072d0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      parser/raylib_parser.c

+ 1 - 1
parser/raylib_parser.c

@@ -703,7 +703,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);