kolibrios-fun/programs/develop/ktcc/trunk/libc.obj/source/stdlib/assert.c
turbocat 678de81f24 kolibri-libc:
- added qsort and assert
- delete junk files
- updated libc loader


git-svn-id: svn://kolibrios.org@9013 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-07-06 18:18:46 +00:00

14 lines
296 B
C

#include <stdio.h>
#include <stdlib.h>
#pragma GCC push_options
#pragma GCC optimize("O0")
void __assert_fail(const char *expr, const char *file, int line, const char *func)
{
fprintf(stdout, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line);
exit(0);
}
#pragma GCC pop_options