commit | 36b605a10433d6ffd4796714a4e2456f60177101 | [log] [tgz] |
---|---|---|
author | Taylor Cramer <cramertj@google.com> | Thu Aug 18 15:34:39 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 18 15:34:39 2022 +0000 |
tree | 511c3886010d59747dc02430c8f588a8e9fbe6c8 | |
parent | 2005fc23aa467a096c0f05c1cdee962d9899b5b5 [diff] |
pw_rpc: Error on service and method with same name Before this change, services contianing a method with the same name as the service (e.g. `service Echo { rpc Echo... }`) would fail to compile with the error "constructor cannot have a return type". This CL adds a nicer error in this case, and does not yet introduce a fallback path for names. Change-Id: I6e0af30129ad65c3a9138f136bd89a5509c50c58 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107290 Pigweed-Auto-Submit: Taylor Cramer <cramertj@google.com> Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Taylor Cramer <cramertj@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/.