瀏覽代碼

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

pull/1818/head
Deathbat2190 3 年之前
committed by GitHub
父節點
當前提交
9681a072d0
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 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);

Loading…
取消
儲存