diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-03-17 20:24:22 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-03-20 20:33:24 +0100 |
| commit | 9153aca15bc1150e450dd56e79bc035cc2dbf27c (patch) | |
| tree | 10af0f2f7790b1ea74baa54f6c5343598ac2826f /contrib | |
| parent | 38bcce997763f2e0c4bb6c0a3926674317796544 (diff) | |
| download | passt-9153aca15bc1150e450dd56e79bc035cc2dbf27c.tar passt-9153aca15bc1150e450dd56e79bc035cc2dbf27c.tar.gz passt-9153aca15bc1150e450dd56e79bc035cc2dbf27c.tar.bz2 passt-9153aca15bc1150e450dd56e79bc035cc2dbf27c.tar.lz passt-9153aca15bc1150e450dd56e79bc035cc2dbf27c.tar.xz passt-9153aca15bc1150e450dd56e79bc035cc2dbf27c.tar.zst passt-9153aca15bc1150e450dd56e79bc035cc2dbf27c.zip | |
util: Add abort_with_msg() and ASSERT_WITH_MSG() helpers
We already have the ASSERT() macro which will abort() passt based on a
condition. It always has a fixed error message based on its location and
the asserted expression. We have some upcoming cases where we want to
customise the message when hitting an assert.
Add abort_with_msg() and ASSERT_WITH_MSG() helpers to allow this.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions
