ASSERT - Assert#

Enhanced assert/error checking module with detailed logging.

This implementation provides comprehensive assert handling with:

  • File name, line number, and expression logging

  • Debug session detection and breakpoint triggering

  • Conditional debug asserts via SL_LOG_DEBUG_ASSERT_ENABLE flag

Assert Macros:

  • SL_LOG_CRASH_ASSERT: Always active, triggers assert handler

  • SL_LOG_DEBUG_ASSERT: Active only when SL_LOG_DEBUG_ASSERT_ENABLE is defined

  • assert: Core assert implementation with detailed logging

Macros#

#define
debug_assert (__e)

Core assert implementation with file, line, and expression logging.

#define
SL_LOG_CRASH_ASSERT (condition)

Crash assert - always enabled regardless of SL_LOG_DEBUG_ASSERT_ENABLE configuration.

#define
SL_LOG_DEBUG_ASSERT (condition)

Debug assert - enabled only when SL_LOG_DEBUG_ASSERT_ENABLE is defined.