objectbox-generator icon indicating copy to clipboard operation
objectbox-generator copied to clipboard

Generated code compatibility check

Open vaind opened this issue 5 years ago • 0 comments

Once c-api 1.0 is released, the generated code can check semver compatibility with static_assert (C++) or #if & #error macros (C99). This would ensure, at compile time, that the generated code is compatible with the library used.

Additionally, since objectbox-c is a shared library, a runtime check may make sense for some users. We should probably encourage them to do so in docs?

vaind avatar Jul 01 '20 07:07 vaind