AssertEntry#

Fully qualified name: carb::assert::AssertEntry

Defined in carb/assert/IAssert.h

struct AssertEntry#

Information about an assertion.

Note

This structure is not intended to be instantiated directly but by assertion macros such as CARB_ASSERT.

Public Functions

inline constexpr AssertEntry(
Type type,
const char *condition,
const char *func,
const char *file,
int32_t line,
) noexcept#

Constructor.

Public Members

uint16_t sizeOf = {uint16_t(sizeof(AssertEntry))}#

Must always match sizeof(AssertEntry). Used as versioning.

Type type#

The assertion Type.

int32_t line#

The source code line number where the assertion is located.

const char *condition#

A string representation of the assertion that failed.

const char *file#

The source code file name where the assertion is located.

const char *func#

The source code function name where the assertion is located.