kolibrios-gitea/programs/develop/ktcc/trunk/libc/stdlib/assert.c

8 lines
217 B
C
Raw Normal View History

#include <stdio.h>
#include <stdlib.h>
void __assert_fail(const char *expr, const char *file, int line, const char *func){
fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line);
abort();
}