commit | 8e87382862fa9df2f0d7de20af3e1c7acbcb236f | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Feb 20 21:45:51 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 20 21:45:51 2024 +0000 |
tree | 62d2319bdb8ce59d62e5e44cc487941ce26afe91 | |
parent | 68f37cc76f34908872332986e8d738018d69d416 [diff] |
pw_preprocessor: Use __VA_OPT__ when available When available, use __VA_OPT__ to implement PW_EMPTY_ARGS() instead of the current workaround. This dramatically simplifies PW_EMPTY_ARGS(), resulting in: - code that is easier to understand and debug, - simpler error messages involving PW_EMPTY_ARGS(), - support for any number of arguments (currently, PW_EMPTY_ARGS() fails to compile for >64 arguments), - potentially faster compilation times, since PW_EMPTY_ARGS() is expanded many, many times in a build (10+ times per tokenized log). Change-Id: I8ddd181c93b34216bdaf03490872a055f32b699e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/187099 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: Wyatt Hepler <hepler@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/.