Skip to content
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

Better support for C enum. #425

Merged
merged 1 commit into from
Jun 13, 2022
Merged

Better support for C enum. #425

merged 1 commit into from
Jun 13, 2022

Commits on Jun 13, 2022

  1. Better support for C enum.

    Create a 'enum' in .h file, with same values than in C++.
    Difference are the names of the 'constants'. The enum name is
    prepended before the RUST enum value name.
    
    Minimal testing tools available.
    
    Note:
    generate_c_code_for_enum is renamed as generate_cpp_code_for_enum, as it is actually generating code for C++.
    generated_c_code_for_enum is created to generate C code !
    
    Commit squashed after review.
    Added more tests, especially after the new enum syntax.
    stephan57160 committed Jun 13, 2022
    Configuration menu
    Copy the full SHA
    2841c71 View commit details
    Browse the repository at this point in the history