Ver código fonte

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

pull/1818/head
Deathbat2190 3 anos atrás
committed by GitHub
pai
commit
9681a072d0
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      parser/raylib_parser.c

+ 1
- 1
parser/raylib_parser.c Ver arquivo

@ -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);

Carregando…
Cancelar
Salvar