-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDebug.cpp
44 lines (33 loc) · 896 Bytes
/
Debug.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
#include "BaseLib/Debug.h"
namespace BaseLib
{
#ifndef INTACT_NO_DEBUG_OUTPUT
//#define APPENDDEBUG TSPRETTY_FUNCTION
IDebug iInfo(std::string append)
{
return IDebug(LogDebugBase::INFO, append);
}
IDebug iDebug(std::string append)
{
return IDebug(LogDebugBase::DEBUG, append);
}
IDebug iWarning(std::string append)
{
return IDebug(LogDebugBase::WARNING, append);
}
IDebug iCritical(std::string append)
{
return IDebug(LogDebugBase::CRITICAL, append);
}
IDebug iFatal(std::string append)
{
return IDebug(LogDebugBase::FATAL, append);
}
#else
INoDebug iInfo(std::string append) { return INoDebug(); }
INoDebug iDebug(std::string append) { return INoDebug(); }
INoDebug iWarning(std::string append) { return INoDebug(); }
INoDebug iCritical(std::string append) { return INoDebug(); }
INoDebug iFatal(std::string append) { return INoDebug(); }
#endif
} // namespace BaseLib