Closed stephan57160 closed 2 years ago
I see also a conflicting files, which was nos there previsously. I'll change that too, no problem.
You prefer different commits, or a squash of all ?
You prefer different commits, or a squash of all ?
I suppose "squash" is better for such small feature, too make life easier during "git bisect".
I see also a conflicting files
I removed empty line in enum generator, and I suppose this is cause conflicts.
New tests added, after seeing the new enum syntax
.
You prefer different commits, or a squash of all ?
I suppose "squash" is better for such small feature, too make life easier during "git bisect".
I see also a conflicting files
I removed empty line in enum generator, and I suppose this is cause conflicts.
No. Mistake was on my side. I simply did not fetch upstream/master and did not get the new 'enum syntax' PR. Before I understood this, I had a few push attempts ... It's fixed now, and I added some more tests, with this too.
See discussion in #419.
Create a 'enum' in .h file, with same values than in C++. Difference are the names of the 'constants' : In C, the enum name is prepended before the RUST enum name.
Testing tool are also available in tests/expectations.
Note:
generate_c_code_for_enum
is renamed asgenerate_cpp_code_for_enum
, as it is actually generating code for C++.generated_c_code_for_enum
is created to generate C code !