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

📄 debug.h

📁 龙格库塔法求解二维反应扩散方程
💻 H
字号:
// file debug.h
#ifndef __DEBUG_H__
#define __DEBUG_H__
#ifdef _DEBUG
	void _trace(char *fmt, ...);
	#define ASSERT(x) {if(!(x)) _asm{int 0x03}}
	#define VERIFY(x) {if(!(x)) _asm{int 0x03}}  // 译注:为调试版本时产生中断有效
#else
	#define ASSERT(x)
	#define VERIFY(x) x                  // 译注:为发行版本时不产生中断
#endif
#ifdef _DEBUG
	#define TRACE _trace
#else
	inline void _trace(LPCTSTR fmt, ...) { }
	#define TRACE  1 ? (void)0 : _trace
#endif
#endif // __DEBUG_H__

⌨️ 快捷键说明

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