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

[C] add test to ensure generated C code properly compiles when versio… #1011

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

nbradac
Copy link
Contributor

@nbradac nbradac commented Aug 22, 2024

…ns are set

#include "code_generation_test_version/messageHeader.h"

int main(void)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this test access anything from car.h or messageHeader.h, i.e. what kind of compilation check will it be doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's validating that the code in the header files actually compiles. Without the fix that you merged earlier, this file would fail to compile. We'd see a bunch of this when running cppbuild:

/Users/natebradac/src/real-logic/simple-binary-encoding/cppbuild/Release/generated/c/code_generation_test_version/car.h:2705:16: error: expected expression
        return { NULL, 0 };
               ^

@vyazelenko vyazelenko merged commit e7c1c2c into aeron-io:master Aug 22, 2024
34 checks passed
DarrylGamroth pushed a commit to New-Earth-Lab/simple-binary-encoding that referenced this pull request Nov 19, 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

Successfully merging this pull request may close these issues.

2 participants