📄 debug.h
字号:
#ifndef _DEBUG_H_
#define _DEBUG_H_
#include "compinfo.h"
#include <string>
#include "../singleton.h"
#include "dbgconsole.h"
class GcDebug : public Singleton<GcDebug>
{
public:
// Constructor / Destructor
GcDebug();
~GcDebug();
//enum MsgType { INFO, ERROR };
void GetInfo();
void Report( char * string, ... );
//void Report( MsgType type, char * string, ... );
bool Log( char * string, ... ); // Open, write and close log file
static void Allocated() { numAllocated++; }
static void Deallocated() { numDeallocated++; }
static void Memory(int mem) { memoryUsed += mem; }
static __int64 Memory() { return memoryUsed; }
GcDebugConsole * Console() { return m_debugConsole; }
private:
static __int64 memoryUsed;
static unsigned int numAllocated;
static unsigned int numDeallocated;
char fileName[255];
GcCompchar comp;
GcDebugConsole * m_debugConsole;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -