ti83-sdk/lib83/__assert_fail.c

25 lines
541 B
C
Raw Permalink Normal View History

2023-10-07 23:32:30 +00:00
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
2023-10-08 12:52:17 +00:00
void __assert_fail(const char * __assertion, const char * __file, unsigned int __line, const char * __function) {
2023-10-07 23:32:30 +00:00
clrscr();
gotoxy(0, 0);
puts("Assertion failed");
puts(__assertion);
putchar('\xff');
puts("File: ");
puts(__file);
putchar('\xff');
puts("Line: ");
put_int(__line);
putchar('\xff');
puts("Function: ");
puts(__function);
putchar('\xff');
puts("Press any key to continue ...");
getchar();
exit();
}