Throw or abort in response to an assertion violation.
Declared in <bsls_asserttest.h>
[[noreturn]]
static
void
failTestDriver(AssertViolation const& violation);
Throw an AssertTestException having the pointer values text and file and the integer line from the specified violation as its salient attributes, provided that BDE_BUILD_TARGET_EXC is defined; otherwise, log an appropriate message and abort the program (similar to Assert::failAbort). Note that this function is intended to have a signature compatible with a registered assertion-failure handler function in bsls_assert.
This function does not return.
| Name | Description |
|---|---|
| violation | details of the failed assertion |