Skip to content

Template id #define for c #1006

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

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Conversation

nbradac
Copy link
Contributor

@nbradac nbradac commented Jul 18, 2024

I could use a #define with the template id for each of the messages for use in a switch statement.

I've added a 'toUppercaseWithUnderscores' function that converts something like 'someCamlCaseString' to 'SOME_CAMEL_CASE_STRING' so that the struct name can be converted into something that looks more like a #define constant.

@nbradac nbradac marked this pull request as ready for review August 1, 2024 16:01
@JPWatson JPWatson merged commit 7d3da8a into aeron-io:master Aug 1, 2024
34 checks passed
@nbradac nbradac deleted the template-id-define-for-c branch August 1, 2024 16:44
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