Fix parser function description detection

Some functions in easings.h are defined on a single line and include a
division which was mistaken for the start of the description.
This commit is contained in:
lazaray 2022-05-03 14:53:33 +02:00
parent 8cb03ef524
commit 156d244a87

View File

@ -728,7 +728,7 @@ int main(int argc, char* argv[])
// Get function description // Get function description
for (int c = funcEnd; c < MAX_LINE_LENGTH; c++) for (int c = funcEnd; c < MAX_LINE_LENGTH; c++)
{ {
if (funcLines[i][c] == '/') if ((funcLines[i][c] == '/') && (funcLines[i][c + 1] == '/'))
{ {
MemoryCopy(funcs[i].desc, &funcLines[i][c], 127); // WARNING: Size could be too long for funcLines[i][c]? MemoryCopy(funcs[i].desc, &funcLines[i][c], 127); // WARNING: Size could be too long for funcLines[i][c]?
break; break;