BloombergLP::bsls::Assert::invokeHandler

Invoke the installed handler with expression text, file, and line.

Synopsis

Declared in <bsls_assert.h>

static
void
invokeHandler(
    char const* text,
    char const* file,
    int line);

Description

Invoke the currently installed assertion-failure handler function with the specified expression text, file name, and line number as its arguments. The behavior is undefined if the macro BSLS_ASSERT_ENABLE_NORETURN_FOR_INVOKE_HANDLER is defined, and the currently installed assertion-failure handler function returns to the caller (i.e., the assertion handler does not abort, exit, terminate, throw, or hang). Note that this function is deprecated, as the (BSLS) "ASSERT" macros all now use the bsls::AssertViolation overload of invokeHandler instead.

DEPRECATED: Use invokeHandler(const AssertViolation&) instead.

Parameters

NameDescription
textexpression text of the failed assertion
filesource file name where the assertion failed
linesource line number where the assertion failed