CNES / ccsdsmo-malc-stubgenerator

Stub Generator for CCSDS MAL C API
https://cnes.github.io/ccsdsmo-malc
MIT License
3 stars 2 forks source link

Revise generation of functions related to Xcoding error #3

Closed gbonnefille closed 7 years ago

gbonnefille commented 7 years ago

Previously, the error_decode was generated only when at least one declared error contains an extra information.

As the standard considers this extra information as a nullable Element, the error_decode function is now always generated. If the extra information is not provided, the returned mal_element_holder will have its presence flag set to false.

Furthermore, the encoding functions related to error are generated only for the types of the declared extra informations.