assert.c (253B)
1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <assert.h> 5 6 void __assert_fail(const char *file, int line, 7 const char *func, const char *exp) 8 { 9 fprintf(stderr, "%s:%d: failed assertion '%s' in function %s\n", 10 file, line, exp, func); 11 abort(); 12 } 13