|
|
|
@ -10,6 +10,12 @@
|
|
|
|
|
|
|
|
|
|
#include "debuglog.hpp"
|
|
|
|
|
|
|
|
|
|
#if defined _WIN32 && defined _DEBUG
|
|
|
|
|
# undef WIN32_LEAN_AND_MEAN
|
|
|
|
|
# define WIN32_LEAN_AND_MEAN
|
|
|
|
|
# include <windows.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
namespace Debug
|
|
|
|
|
{
|
|
|
|
|
// ANSI colors for terminal
|
|
|
|
@ -47,11 +53,7 @@ namespace Debug
|
|
|
|
|
bool attachParentConsole();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(_WIN32) && defined(_DEBUG)
|
|
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN 1
|
|
|
|
|
#endif // !WIN32_LEAN_AND_MEAN
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
#if defined _WIN32 && defined _DEBUG
|
|
|
|
|
class DebugOutput : public DebugOutputBase
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|