debug.h
来自「日本的开源编辑器源码」· C头文件 代码 · 共 72 行
H
72 行
// $Id: Debug.h,v 1.4 2001/12/19 04:19:19 genta Exp $
/*! @file
@brief デバッグ用関数
@author Norio Nakatani
$Revision: 1.4 $
*/
/*
Copyright (C) 1998-2001, Norio Nakatani
This source code is designed for sakura editor.
Please contact the copyright holder to use this code for other purpose.
*/
#ifndef _DEBUG_H_
#define _DEBUG_H_
#include <windows.h>
#include "global.h"
SAKURA_CORE_API void AssertError( LPCTSTR pszFile, long nLine, BOOL bIsError );
SAKURA_CORE_API void DebugOut( LPCTSTR lpFmt, ...);
//void DebugOutDialog( LPCTSTR lpFmt, ...);
SAKURA_CORE_API int DebugOutDialog( HWND, UINT, LPCTSTR, LPCTSTR, ... );
//void MYASSERT( LPCTSTR, long, BOOL );
#ifdef _DEBUG
#define MYTRACE DebugOut
#endif
#ifndef _DEBUG
#define MYTRACE Do_not_use_the_MYTRACE_function_if_release_mode
#endif
//#ifdef _DEBUG
#define MYMESSAGEBOX DebugOutDialog
//#endif
//#ifndef _DEBUG
// #define MYMESSAGEBOX DebugOutDialog
//#endif
//#ifdef _DEBUG
#define MYASSERT AssertError
//#endif
//#ifndef _DEBUG
// #define MYASSERT raise_compile_error
//#endif
/*
#ifdef _DEBUG
#define MYASSERT( _file, _line, b ) AssertError( (_file), (_line), (b) )
#endif
#ifndef _DEBUG
#define MYASSERT( _file, _line, b ) AssertError( (_file), (_line), (b) )
#endif
*/
#ifdef _DEBUG
SAKURA_CORE_API extern int gm_ProfileOutput;
#endif
///////////////////////////////////////////////////////////////////////
#endif /* _DEBUG_H_ */
/*[EOF]*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?