NordicSemiconductor / zcbor

Low footprint C/C++ CBOR library and Python tool providing code generation from CDDL descriptions.
Apache License 2.0
105 stars 34 forks source link

zcbor.py: Change name of generated choice enum members to add a '_c' #338

Closed oyvindronningstad closed 11 months ago

oyvindronningstad commented 1 year ago

This is to make them different from the data elements they refer to, since in C++ they occupy the same namespace, causing compilation errors.

Most of the patch is changing samples and tests to match the new naming.

Fixes #314 and https://github.com/zephyrproject-rtos/zephyr/issues/54092

oyvindronningstad commented 12 months ago

Is the _c after choice?

@FilipZajdel yes