std1.0.0-beta-7 SafeC docs

std :: assert

Function std::runtime_assert

#include <std/assert.h> source · definition

void runtime_assert(int cond, const &char msg)

Assert that cond is true; on failure prints "Assertion failed: <msg>" and aborts. A function can't learn its caller's file/line, so these report no location — in compat mode (--compat-preprocessor) the macros below route them through runtime_assert_at with the caller's location.