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

JSON parser: Use array for function params (#2255) #2264

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

gtrxAC
Copy link
Contributor

@gtrxAC gtrxAC commented Jan 4, 2022

Related issue: #2255
Uses arrays with objects containing name and type instead of objects with name as key and type as value for function parameters in the JSON raylib parser.

parser/raylib_parser.c Outdated Show resolved Hide resolved
parser/raylib_api.lua Outdated Show resolved Hide resolved
parser/raylib_api.json Outdated Show resolved Hide resolved
@raysan5 raysan5 merged commit 2e3cfdc into raysan5:master Jan 4, 2022
@raysan5
Copy link
Owner

raysan5 commented Jan 4, 2022

@gtrxAC Thanks for the improvement!

@planetis-m
Copy link
Contributor

planetis-m commented Jan 5, 2022

(Edited: my bad my parser ignored the order) If possible don't follow the C syntax. For example {"name": "name[10]", "type": "char"} is hard to parse because we need to take into account the field "name" as well to infer the type.

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.

3 participants