forked from Andarix/simutrans
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimdebug.cc
More file actions
44 lines (32 loc) · 713 Bytes
/
simdebug.cc
File metadata and controls
44 lines (32 loc) · 713 Bytes
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
/*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#ifndef _SIM_DEBUG
#define _SIM_DEBUG
#include <assert.h>
#include <stdlib.h>
#include "simdebug.h"
#include "utils/log.h"
/**
* The log for all messages
*/
log_t *dbg = NULL;
/**
* Inits logging facility.
*/
void init_logging(const char* logname, bool force_flush, bool log_debug, const char* greeting, const char* syslogtag )
{
dbg = new log_t( logname, force_flush, log_debug, true, greeting, syslogtag );
}
#if (MSG_LEVEL >= 1)
#ifdef _MSC_VER
int __cdecl _purecall()
#else
extern "C" void __cxa_pure_virtual()
#endif
{
dbg->fatal("unknown", "pure virtual function call");
}
#endif
#endif