mirror of https://github.com/raysan5/raylib
Fix parsing of empty parentheses (#3974)
Co-authored-by: Filyus <fahmedyanov@dpg.email>
This commit is contained in:
parent
f4b5622ba3
commit
3f13f7921d
|
@ -1006,8 +1006,14 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
funcEnd = c + 2;
|
||||
|
||||
// Check if previous word is void
|
||||
if ((linePtr[c - 4] == 'v') && (linePtr[c - 3] == 'o') && (linePtr[c - 2] == 'i') && (linePtr[c - 1] == 'd')) break;
|
||||
// Check if there are no parameters
|
||||
if ((funcEnd - funcParamsStart == 2) ||
|
||||
((linePtr[c - 4] == 'v') &&
|
||||
(linePtr[c - 3] == 'o') &&
|
||||
(linePtr[c - 2] == 'i') &&
|
||||
(linePtr[c - 1] == 'd'))) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Get parameter type + name, extract info
|
||||
char funcParamTypeName[128] = { 0 };
|
||||
|
|
Loading…
Reference in New Issue