-
-
Notifications
You must be signed in to change notification settings - Fork 3
Implement settings with ifdefs #38
Copy link
Copy link
Open
Labels
code-generationInvolves generation of parser / serializer codeInvolves generation of parser / serializer code
Description
Activity
Metadata
Metadata
Assignees
Labels
code-generationInvolves generation of parser / serializer codeInvolves generation of parser / serializer code
Projects
- StatusShow more project fieldsLow Priority
The way parsers and serializers are generated could be changed so that they are configurable with macro definitions rather than settings for the generator, with a notable exception of
noThrowas that would result in a mess with function return types. This would also make it easier to check different versions of the generated functions as all would be visible simultaneously. The settings can be kept for default macro values, e.g.For
checkMissingKeysandcheckRepeatingKeys, this would work aswith
JSON_CPP_KEY_ENCOUNTEREDbeing defined at the beginning of the file to either nothing, just flaggingdoneKeys, or also checking to throw aREPEATED_KEYbased on the configuration macros.