grow on demand heap
[lunaix-os.git] / lunaix-os / kernel / assert.c
1 #include <lunaix/assert.h>
2
3 void __assert_fail(const char* expr, const char* file, unsigned int line) {
4     tty_set_theme(VGA_COLOR_BLACK, VGA_COLOR_LIGHT_RED);
5     tty_clear_line(10);
6     tty_clear_line(11);
7     tty_clear_line(12);
8     tty_set_cpos(0, 11);
9     printf("  Assert %s failed (%s:%u)", expr, file, line);
10     __spin:
11         goto __spin;
12 }