Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 1 | #include <stdio.h> |
2 | #include <stdlib.h> | ||||
3 | |||||
George Kulakowski | 17e3b04 | 2016-02-18 15:59:50 -0800 | [diff] [blame] | 4 | void __assert_fail(const char* expr, |
5 | const char* file, | ||||
6 | int line, | ||||
7 | const char* func) { | ||||
8 | fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, | ||||
9 | line); | ||||
10 | fflush(NULL); | ||||
11 | abort(); | ||||
Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 12 | } |