HomeFreeBSD

include: add a userland version of __assert_unreachable

Description

include: add a userland version of __assert_unreachable

The kernel has had a version of this since
c79cee71363d ("kernel: provide panicky version of unreachable"), and
userland can benefit from the same.
unreachable is largely
inadequate because it's *not* an assertion of any sort, so we're not
really alerted to a problem that we could've anticipated.

Reviewed by: emaste, imp, jhb, olce
Differential Revision: https://reviews.freebsd.org/D48077

Details

Provenance
kevansAuthored on Mon, Jan 13, 12:41 AM
Reviewer
emaste
Differential Revision
D48077: include: add a userland version of __assert_unreachable
Parents
rGdf48361e7792: Eliminate unneeded variables and computations.
Branches
Unknown
Tags
Unknown