commit | 3011a52d1c50c87f6ec03ecbb6e23c02b265dc82 | [log] [tgz] |
---|---|---|
author | Jonathon Reinhart <jrreinhart@google.com> | Wed Aug 30 20:11:29 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 30 20:11:29 2023 +0000 |
tree | 1bd1ef73ca39f639256003c848f9eeeec90069b3 | |
parent | c94b32d9bb61f4c013afde23d0bc210657becbd5 [diff] |
pw_protobuf: Introduce proto_message_field_props() This helper function reduces code duplication for all callers wanting to iterate a message's fields/properties. Test: Ensure generated file is unmodified before/after this change: out/protocol_buffer/gen/pw_i2c/protos.proto_library/pwpb/pw_i2c/i2c.pwpb.h Change-Id: Ic97cbb6bf24d2d178632f08b168b28390b485d8f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/168972 Reviewed-by: Alexei Frolov <frolv@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Jonathon Reinhart <jrreinhart@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.