Closed tiffany1618 closed 2 years ago
fpp-to-xml gives an error for empty structs, but fpp-to-cpp currently doesn't. Do we want fpp-to-cpp to also give an error?
fpp-to-xml gives an error for empty structs, but fpp-to-cpp currently doesn't. Do we want fpp-to-cpp to also give an error?
No. Empty structs are allowed in FPP and in C++. The error in fpp-to-xml exists because the XML schema does not support them. So this is a case where we are implementing part of the FPP spec that is not implemented when going through XML.
Also, same comment as on #144 -- please re-run all unit tests and update them as necessary.
Closes #137 Closes #138
Added
StructCppWriter
: Writes C++ for FPP struct definitionsChanges from Python XML struct autocoder:
s.get_a().set_b()
, wheres
is a struct containing a struct type membera
, which in turn contains another memberb
)