Micro-toolkit

microassert

Assertions need bounded retained context and application-specific terminal handling.

A caller-owned assert/panic context supports severities, hooks and bounded copied history.

DevelopmentMITC99
Last verified
Not audited against current README/docs
Platform scope
Portable C99; integration depends on caller-provided adapters

What it solves

Assertions need bounded retained context and application-specific terminal handling.

How it works

1Condition2severity + formatted record3hooks4terminal callback

Use it when

Record a failed invariant
Route fatal conditions to reset or halt callbacks
Retain recent bounded panic messages

Quick Start

#include "massert.h"
/* Initialize hook and history arrays, then use MASSERT_MSG or MPANIC. */

Engineering evidence

  • C99/C11 and C++ header compatibility is documented

Known limits

  • Uses standard-library vsnprintf
  • Terminal behavior is supplied by callbacks