2021-07-06 20:18:46 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#pragma GCC push_options
|
|
|
|
#pragma GCC optimize("O0")
|
|
|
|
|
2022-04-15 11:00:55 +02:00
|
|
|
void __assert_fail(const char* expr, const char* file, int line, const char* func)
|
2021-07-06 20:18:46 +02:00
|
|
|
{
|
2022-04-15 11:00:55 +02:00
|
|
|
fprintf(stdout, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line);
|
|
|
|
exit(0);
|
2021-07-06 20:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#pragma GCC pop_options
|