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

Consider to redesign the version check in the generated headers #44

Open
mikir opened this issue Nov 18, 2024 · 0 comments
Open

Consider to redesign the version check in the generated headers #44

mikir opened this issue Nov 18, 2024 · 0 comments
Milestone

Comments

@mikir
Copy link
Collaborator

mikir commented Nov 18, 2024

Each generated header contains the following code at the beginning of the source file:

#include <zserio/CppRuntimeVersion.h>
#if CPP17_EXTENSION_RUNTIME_VERSION_NUMBER != 1000
    #error Version mismatch between Zserio runtime library and Zserio C++ generator!
    #error Please update your Zserio runtime library to the version 0.1.0.
#endif

Consider to replace this by some short macro which will be defined in the runtime library. This could save some lines of the generated code.

@mikir mikir added this to the Backlog milestone Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant