commit | 420672d94c74c53e8d70b24163320d6bc317acac | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Fri Jan 12 23:28:21 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 12 23:28:21 2024 +0000 |
tree | 23d0d4d88beaf76de109e0c3e18fbbf6a36309d4 | |
parent | a29bf57c735c7c787694167d063174f49192a8c6 [diff] |
pw_tokenizer: Remove <assert.h> include for static_assert Prior to C23, <assert.h> provided a macro that defines static_assert as _Static_assert. C23 deprecates the _Static_assert keyword in favor of static_assert, and the macro is no longer provided in <assert.h>. When compiling with C17 or earlier, define static_assert rather than including <assert.h>. This avoids an unnecessary include that introduces a sometimes conflicting symbol (assert). Change-Id: Ia381980bd215fc07b8a8c1c3737d824009f6248c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/187665 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com> Reviewed-by: 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/.