-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add metadata to types, unions and enums. #97
Labels
Comments
Just so you don't happen to start to implement this over the weekend, I will finish this on Monday and create a PR |
That will not happen... the entire weekend is booked by me and my better half :) |
Tisten
pushed a commit
to Tisten/datalibrary
that referenced
this issue
Oct 17, 2022
I hope this can be marked as fixed when the PR is approved. |
wc-duck
pushed a commit
that referenced
this issue
Nov 2, 2022
* Small fixes (and with incorrect commas) * Added support for metadata #97 * Didn't mean to change all that whitespace * More whitespace madness * Compile warning fix * Gcc fixes * Fixed memory leaks and operations on uninitialized memory * Fixed uninitialized data * PR review fixes * Review fix from PR #157 * GCC C fix * Moved metadata access to dl_reflect.h * Removed WinMerge .bak file Co-authored-by: Christian Nilsendahl <[email protected]>
Feel free to close this now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You define your metadata as dl-types and then the metadata of a type as
"metadata" : [ { "range" : { "min" : 1, "max" : 5 } ]
I.e. "range" here would be a dl-type as any other and parsed as such. The instance is then stored in the typelib and accessed via something as:
The text was updated successfully, but these errors were encountered: