?? debuglog.h
字號(hào):
// Macrodefinitions for building debug logs
// Declaration file
//
// (c) Lev Naumov, CAMEL Laboratory
// E-mail: camellab@mail.ru
// For more information see http://camel.ifmo.ru or
// http://www.codeproject.com/internet/ctp.asp
/////////////////////////////////////////////////////////////////////////////
//#define DEBUG_LOG
// Deadlocks logging
#ifdef DEBUG_LOG
#define LOCK(x) TRACE2("1: Try lock at %s (%d)\n",__FILE__,__LINE__); x.Lock(); TRACE2("2: Locked at %s (%d)\n",__FILE__,__LINE__);
#define UNLOCK(x) TRACE2("3: Try unlock at %s (%d)\n",__FILE__,__LINE__); x.Unlock(); TRACE2("4: Unlocked at %s (%d)\n",__FILE__,__LINE__);
#else
#define LOCK(x) x.Lock()
#define UNLOCK(x) x.Unlock()
#endif
// Checks if pointer p is valid or not
#ifdef _DEBUG
#define VALID(p) (p || (unsigned int)p==0xcdcdcdcd)
#else
#define VALID(p) (p)
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -