Skip to content

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

Merged
raysan5 merged 2 commits intoraysan5:masterfrom
gtrxAC:master
Jan 4, 2022
Merged

JSON parser: Use array for function params (#2255)#2264
raysan5 merged 2 commits intoraysan5:masterfrom
gtrxAC:master

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.

@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