-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm2except.cpp
54 lines (38 loc) · 995 Bytes
/
m2except.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Filename: include\m_except.cpp
//
// Developed by Oliver Belaifa in 1997
//
#include<stdio.h>
#include<string.h>
//#include<process.h>
#include <stdlib.h>
//#include<gmvesa.h>
#include<m2except.h>
//#include<gfxstrio.h>
//extern CGfxModeVesa *pVesa;
//extern CGfxStrIO *pGfxStrIO;
CMV2NormException::CMV2NormException(const char *cError,
const char *cFile,
long lLineNumber)
{
m_cError = strdup(cError);
m_cFile = strdup(cFile);
m_lLineNumber = lLineNumber;
}
CMV2NormException::~CMV2NormException()
{
delete [] m_cError;
delete [] m_cFile;
exit(1);
}
void CMV2NormException::PrintError()
{
//if (pVesa != NULL)
//{
// char pcText[80];
// sprintf(pcText, "%s, in File %s in Line %d.\n", m_cError, m_cFile, m_lLineNumber);
// pGfxStrIO->WriteStr(pcText, (char *)pVesa->m_pMappedLfb);
//}
//else
printf("%s, in File %s in Line %d.\n", m_cError, m_cFile, (int)m_lLineNumber);
}