Skip to content

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
@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

2 participants