print a message on assert failure

This commit is contained in:
K. Lange 2018-03-01 23:15:49 +09:00 committed by Kevin Lange
parent adb38a1a8a
commit 5ace6fce2a

View File

@ -1,4 +1,6 @@
#include <stdio.h>
void __assert_func(const char * file, int line, const char * func, const char * failedexpr) {
fprintf(stderr, "Assertion failed in %s:%d (%s): %s\n", file, line, func, failedexpr);
// void
}