wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

"comment" is not valid on enum-values! #125

Closed wc-duck closed 5 years ago

wc-duck commented 5 years ago

it should be possible to write:

{
    "enums" : {
        "my_enum" : {
            "values" : {
                "MY_VAL" : { "value" : 1, "comment" : "whoppdididoda!" } // this currently fails!
            }
        }
    }
}

Comment should propagate to generated headers

enum my_enum
{
    MY_VAL = 1 // whoppdididoda!
};