assert#

Fully qualified name: carb::assert

namespace assert#

Namespace for all assertion checking helpers and interfaces.

Enumerations#

uintptr_t Handle

A handle type representing a registered vectored assertion handler.

Result

The return value of a vectored assertion handler.

uint16_t Type

Assertion types.

Functions#

void deregisterAssertForClient() noexcept

Removes the global instance of the IAssert interface.

bool disableDialog(bool disable)

Disables the assertion failure dialog for the process.

uint64_t getFailureCount()

Retrieves the current assertion failure count for the calling process.

void registerAssertForClient() noexcept

Registers the IAssert implementation with the calling module.

bool showToConsole(bool enabled)

Sets whether a message should be printed out to the console on a failed assertion.

bool useBreakpoint(bool enabled)

Sets whether the software breakpoint for a failed assertion should be triggered.

Structs#

AssertEntry

Information about an assertion.

IAssert

Interface to provide functionality to display assertion failures in greater detail.

Typedefs#

AssertFlags

Base type for the flags that control the behavior of CARB_ASSERT() and CARB_CHECK() failure reporting.

VectoredAssertionHandler

Definition of a vectored assertion handler function.

Variables#

constexpr AssertFlags fAssertNoConsole

Flag to indicate that the assertion should not produce any console output.

constexpr AssertFlags fAssertNoMetadata

Flag to indicate that the assertion should not store any crash metadata.

constexpr AssertFlags fAssertSkipBreakpoint

Flag to indicate that the software breakpoint that is triggered on a failing assertion is to be ignored.

constexpr AssertFlags fAssertSkipDialog

Flag to indicate that the assertion confirmation dialog should always be skipped for this process.