shithub: scc

ref: d1475c2e8a729ae33f2f8fd94ad0b54b519ce8c3
dir: /libc/src/assert.c/

View raw version
/* See LICENSE file for copyright and license details. */

#include <assert.h>
#include <stdlib.h>
#include <stdio.h>

void __assert(int status, char *exp, char *file, long line)
{
	if (status)
		return;
	fprintf(stderr, "%s:%ld: assertion failed '%s'\n", file, line, exp);
	abort();
}