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

Add option to generate to_string functions for oneof messages #728

Open
pdietl opened this issue Dec 16, 2021 · 1 comment
Open

Add option to generate to_string functions for oneof messages #728

pdietl opened this issue Dec 16, 2021 · 1 comment

Comments

@pdietl
Copy link

pdietl commented Dec 16, 2021

What should the feature do?
Add an option like (nanopb_fileopt).enum_to_string, maybe called oneof_to_string that generates functions which take a pb_size_t and output a string displaying which oneof member is indicated.

In what situation would the feature be useful?
Debugging

@pdietl
Copy link
Author

pdietl commented Dec 16, 2021

If someone thinks this is a good idea, I can implement it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants