📄 debug.h
字号:
/* * debug.h Copyright (C) 2006 Michael H. Overlin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Contact at poster_printer@yahoo.com*/#ifndef DEBLOG_H#define DEBLOG_H// FIX / DEBUG -- THESE ALL NEED TO BE NULLED OUT FOR A RELEASE BUILD#include "printResizerCommon.h"#include <windows.h>#if DBG#define DUMPMSG(m) { OutputDebugStringA(m); \ OutputDebugStringA("\r\n"); }#else#define DUMPMSG(m)#endif#if DBG#define DEBUGMESSAGE(args) { ::OutputDebugString(PRINTRESIZER_APP_NAME); \ ::OutputDebugStringA(" : "); \ ::DebugPrintf("File %s Line %d", __FILE__, __LINE__); \ ::OutputDebugStringA(" : "); \ ::DebugPrintf args; \ ::OutputDebugStringA("\r\n"); \ }#else#define DEBUGMESSAGE(args) #endif#define DEBUGLOGFILE "C:\\DEBUGLOG.TXT"#if DBG#define APPENDDEBUGLOG() AppendDebugLog(DEBUGLOGFILE)#else#define APPENDDEBUGLOG() #endif #if DBG#define LogLine() { DebugLog dl = APPENDDEBUGLOG(); \ PrintDebugLog(dl, "file %s line %d\n", __FILE__, __LINE__); \ CloseDebugLog(&dl); \ }#else#define LogLine() #endif#ifdef __cplusplusextern "C" {#endif#if DBGtypedef void* DebugLog;DebugLog AppendDebugLog(const char *pszLogName) ;void CloseDebugLog(DebugLog *pdl) ;void PrintDebugLog(DebugLog dl, const char *pszFormat, ...) ;void DebugPrintf(const char *pszFormat, ...) ;void ErrorExit(LPTSTR lpszFunction) ;VOID DrawX(OUT HDC hdc, IN const RECT &r) ;VOID DrawTestImage(OUT HDC hdc) ;#endif#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -