Kanzi 3.9.10
assert_detail.hpp File Reference

Namespaces

namespace  kanzi
 

Macros

#define KZ_ASSERT_IF_KANZI_DEBUG_ENABLED_INTERNAL(assertionMacro)
 Used internally.
 
#define KZ_ASSERT_INTERNAL(expression)
 Used internally. See kzAssert().
 
#define KZ_ASSERT_LOG_FAILURE_INTERNAL(expression)
 Used internally by assertion subsystem to log assertion failure message.
 
#define KZ_ASSERT_LOG_FAILURE_MESSAGE_INTERNAL(expression, message)
 Used internally by assertion subsystem to log assertion failure with custom description message.
 
#define KZ_ASSERT_LOG_UNREACHABLE_INTERNAL()
 Used internally by assertion subsystem to log unreachable code assertion.
 
#define KZ_ASSERT_LOG_UNREACHABLE_MESSAGE_INTERNAL(message)
 Used internally by assertion subsystem to log unreachable code assertion.
 
#define KZ_ASSERT_MESSAGE_INTERNAL(expression, message)
 Used internally. See kzAssertMessage().
 
#define KZ_ASSERT_UNREACHABLE_INTERNAL()
 Used internally. See kzAssertUnreachable().
 
#define KZ_ASSERT_UNREACHABLE_MESSAGE_INTERNAL(message)
 Used internally. See kzAssertUnreachableMessage().
 
#define KZ_LOG_CATEGORY_ASSERTION
 Assertion Log Category.
 
#define KZ_LOG_CATEGORY_ASSERTION_ENABLED
 

Macro Definition Documentation

◆ KZ_ASSERT_IF_KANZI_DEBUG_ENABLED_INTERNAL

#define KZ_ASSERT_IF_KANZI_DEBUG_ENABLED_INTERNAL ( assertionMacro)

Used internally.

Enables specified macro invocation if KANZI_DEBUG is defined.

Parameters
assertionMacromacro to be called when KANZI_DEBUG is defined.

◆ KZ_LOG_CATEGORY_ASSERTION_ENABLED

#define KZ_LOG_CATEGORY_ASSERTION_ENABLED

◆ KZ_LOG_CATEGORY_ASSERTION

#define KZ_LOG_CATEGORY_ASSERTION

Assertion Log Category.

This should be used to log assertion messages only.

◆ KZ_ASSERT_LOG_FAILURE_INTERNAL

#define KZ_ASSERT_LOG_FAILURE_INTERNAL ( expression)

Used internally by assertion subsystem to log assertion failure message.

You should not use it directly. Only assertion subsystem uses this macro to log messages. This macro logs failed expression (not it's value) as character string.

Parameters
expressionFailed assertion expression.

◆ KZ_ASSERT_LOG_FAILURE_MESSAGE_INTERNAL

#define KZ_ASSERT_LOG_FAILURE_MESSAGE_INTERNAL ( expression,
message )

Used internally by assertion subsystem to log assertion failure with custom description message.

You should not use it directly. Only assertion subsystem uses this macro to log messages. This macro extends KZ_ASSERT_LOG_FAILURE() syntax with extra message parameter that is appended to the log in order to clarify assertion failure.

Parameters
expressionFailed assertion expression.
messageAssertion failure clarification message. It's format string bundled with format arguments. Should be surrounded with brackets.

◆ KZ_ASSERT_LOG_UNREACHABLE_INTERNAL

#define KZ_ASSERT_LOG_UNREACHABLE_INTERNAL ( )

Used internally by assertion subsystem to log unreachable code assertion.

You should not use it directly. Only assertion subsystem uses this macro to log messages. This macro is used to assert the code that is not supposed to be reached by valid code paths. The error log message is issued when place of the code where this macro used is executed.

◆ KZ_ASSERT_LOG_UNREACHABLE_MESSAGE_INTERNAL

#define KZ_ASSERT_LOG_UNREACHABLE_MESSAGE_INTERNAL ( message)

Used internally by assertion subsystem to log unreachable code assertion.

You should not use it directly. Only assertion subsystem uses this macro to log messages. This macro is used to assert the code that is not supposed to be reached by valid code paths. The error log message is issued when place of the code where this macro used is executed. Sole argument of this macro describing why asserted place in code could be reached.

Parameters
messageAssertion failure clarification message. It's format string bundled with format arguments. Should be surrounded with brackets.

◆ KZ_ASSERT_INTERNAL

#define KZ_ASSERT_INTERNAL ( expression)

Used internally. See kzAssert().

◆ KZ_ASSERT_MESSAGE_INTERNAL

#define KZ_ASSERT_MESSAGE_INTERNAL ( expression,
message )

Used internally. See kzAssertMessage().

◆ KZ_ASSERT_UNREACHABLE_INTERNAL

#define KZ_ASSERT_UNREACHABLE_INTERNAL ( )

Used internally. See kzAssertUnreachable().

◆ KZ_ASSERT_UNREACHABLE_MESSAGE_INTERNAL

#define KZ_ASSERT_UNREACHABLE_MESSAGE_INTERNAL ( message)

Used internally. See kzAssertUnreachableMessage().