wc-duck / datalibrary

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

Make external types work with non-struct types. #99

Closed wc-duck closed 5 years ago

wc-duck commented 5 years ago

Currently there are some issues with using types that are not structs as external types such as typedefs and class:es.

Issue 1: checking offset of and alignment of members do not work if the actual members are private or in other ways not accessible from user code. Solve by adding a "no_check" : true to members in external types that would just not add the offset/align checks?

Issue 2: some other parts of the header-generation will generate 'struct' for c-compatibility, how to solve this is to be decided.

wc-duck commented 5 years ago

Fixed