shithub: riscv

ref: d904a57e1763ac884a749b04f19f3e490a4cec88
dir: /sys/src/libc/port/_assert.c/

View raw version
#include <u.h>
#include <libc.h>

void (*__assert)(char*);

void
_assert(char *s)
{
	if(__assert)
		(*__assert)(s);
	fprint(2, "assert failed: %s\n", s);
	abort();
}