⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jprdebug.h

📁 Password Safe Password Safe is a password database utility. Users can keep their passwords securely
💻 H
字号:
// jprdebug.h//-----------------------------------------------------------------------------#if !defined(jprdebug_h)#define jprdebug_h#if defined(JPRDEBUG)#define DBGMSG(x) ::OutputDebugString(x)inline voidDBGDUMP(const char* mem, size_t len){   const int wrapsize = 20;   char hexbuf[3];   int wrap = 0;   char ascbuf[wrapsize+1];   size_t ix;   DBGMSG("* DEBUGDUMP BEGIN *\n");   for (ix=0; ix<len; ix++)   {      sprintf(hexbuf, "%02.2X", mem[ix]);      DBGMSG(hexbuf);      if (ix % 2) DBGMSG(" ");      if (mem[ix] != 0)         ascbuf[wrap] = mem[ix];      else         ascbuf[wrap] = '.';      wrap++;      if (wrap == wrapsize)      {         ascbuf[wrap] = 0;         DBGMSG(" *");         DBGMSG(ascbuf);         DBGMSG("*\n");         wrap = 0;      }   }   if (wrap == 0)   {      DBGMSG("* DEBUGDUMP END *\n");      return;   }   for (ix=wrap; ix<wrapsize; ix++)   {      DBGMSG("  ");      if (ix % 2) DBGMSG(" ");      ascbuf[ix]=' ';   }   ascbuf[wrapsize]=0;   DBGMSG(" *");   DBGMSG(ascbuf);   DBGMSG("*\n");      DBGMSG("* DEBUGDUMP END *\n");}   #else#   define DBGMSG(x)#   define DEBUGDUMP(mem, len)#endif#endif // jprdebug_h//-----------------------------------------------------------------------------// Local variables:// mode: c++// End:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -