]> git.sur5r.net Git - cc65/blob - libsrc/geos-common/common/_afailed.c
Moved the 'common' files from 'geos-cbm' to 'geos-common' which are believed to work...
[cc65] / libsrc / geos-common / common / _afailed.c
1 /*
2  * _afailed.c
3  *
4  * Maciej 'YTM/Elysium' Witkowiak 28.10.2001
5  */
6
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <geos.h>
10
11 void _afailed (char* file, unsigned line)
12 {
13
14     ExitTurbo();
15
16     drawWindow.top = 0;
17     drawWindow.left = 0;
18     drawWindow.bot = 15;
19     drawWindow.right = 150;
20     dispBufferOn = ST_WR_FORE|ST_WR_BACK;
21     SetPattern(0);
22     Rectangle();
23     FrameRectangle(0xff);
24
25     PutString(CBOLDON "file: ", 10, 10);
26     PutString(file, 10, r11);
27     PutString(CBOLDON "  line: ", 10, r11);
28     PutDecimal(0, line, 10, r11);
29
30     DlgBoxOk(CBOLDON "ASSERTION FAILED", "PROGRAM TERMINATED" CPLAINTEXT);
31
32     exit (2);
33 }