Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing of empty parentheses #3974

Merged
merged 1 commit into from
May 12, 2024
Merged

Conversation

Filyus
Copy link
Contributor

@Filyus Filyus commented May 11, 2024

This fix allows to parse () like (void) in the function parameters.
Another way to fix is to add void into following lines:

raylib/src/rlgl.h

Lines 594 to 595 in f622021

RLAPI double rlGetCullDistanceNear(); // Get cull plane distance near
RLAPI double rlGetCullDistanceFar(); // Get cull plane distance far
these lines are from the commit: 4b0e25d

@raysan5
Copy link
Owner

raysan5 commented May 12, 2024

@Filyus Actually those functions need to be reviewed. C requires defining void if function should not receive parameters, empty parenthesis mean any number of input parameters.

raysan5 added a commit that referenced this pull request May 12, 2024
@raysan5 raysan5 merged commit 3f13f79 into raysan5:master May 12, 2024
@raysan5
Copy link
Owner

raysan5 commented May 12, 2024

@Filyus I'm merging in case of that malformed side-case but it shouldn't be required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants