2024-12-20 22:45:12 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* These functions deliberately do not call printf() or malloc() in order to
|
|
|
|
* abort as quickly as possible without triggering further errors.
|
|
|
|
*/
|
|
|
|
|
|
|
|
void _assert_fail(const char *file, const char *line, const char *e)
|
|
|
|
{
|
|
|
|
puts(file);
|
|
|
|
puts(":");
|
|
|
|
puts(line);
|
|
|
|
puts(": Assertion `");
|
|
|
|
puts(e);
|
2024-12-23 00:46:17 +00:00
|
|
|
puts("' failed\r\n");
|
2024-12-20 22:45:12 +00:00
|
|
|
abort();
|
|
|
|
}
|