浏览代码

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

pull/1818/head
Deathbat2190 4 年前
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);

正在加载...
取消
保存