ti83-sdk/lib83/__assert_fail.c
2023-10-08 14:52:17 +02:00

25 lines
541 B
C

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
void __assert_fail(const char * __assertion, const char * __file, unsigned int __line, const char * __function) {
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();
}