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

Draft: erpcgen: Add namespace and remove typedefs in C++ common header #419

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

PhilippHaefele
Copy link

@PhilippHaefele PhilippHaefele commented Apr 4, 2024

Pull request

Choose Correct

  • bug
  • feature

Describe the pull request

This PR maybe fixes #418

It adds the namespace and change const to consteexpr in the generated ...._common.hpp file

To Reproduce

See #418

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS:
  • eRPC Version:

Steps you didn't forgot to do

  • I checked if other PR isn't solving this issue.
  • I read Contribution details and did appropriate actions.
  • PR code is tested. => But issues with clang and mac
  • PR code is formatted.
  • Allow edits from maintainers pull request option is set (recommended).

Additional context

@PhilippHaefele PhilippHaefele force-pushed the feature/cpp_common_header_rework branch 5 times, most recently from fe132ff to cb97458 Compare April 10, 2024 06:22
- Forward declrations are needed somehow for same name typedefs
- Using constexpr instead of extern const so we can namespace them easily
@PhilippHaefele PhilippHaefele force-pushed the feature/cpp_common_header_rework branch from cb97458 to 61c6ef6 Compare April 10, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Using multiple eRPC clients/server in a C++ project lead to redefinition of struct binary_t
1 participant