commit | df1dfba3d69df5f4a879234b75c46f88203d2e5a | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Feb 01 11:54:57 2022 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 02 00:04:54 2022 +0000 |
tree | 7afeb261d28bb686ea940030c444a3e4a35a2f24 | |
parent | 00db7aae9fdc04bf7aaaa44479f587dc2f66c66d [diff] |
pw_assert: Lite backend impl that prints and aborts Implementation of PW_ASSERT() for host that prints assert information to stderr then aborts at the call site. Use this as the assert backend for host toolchains to give rich context for PW_ASSERTs. Example: path/to/file.h:67: PW_ASSERT() or PW_DASSERT() FAILED! FAILED ASSERTION value != 0 FILE & LINE path/to/file.h:67 FUNCTION void pw::module::internal::SetValue(int) Change-Id: Ia51f632fbe619192980caa93106110c7e863029f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/82191 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Armando Montanez <amontanez@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/