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

📄 leaks.h

📁 主要进行大规模的电路综合
💻 H
字号:
///////////////////////////////////////////////////////////////////////// This file is used to detect memory leaks using Visual Studio 6.0// The idea comes from the following webpage:// http://www.michaelmoser.org/memory.htm//////////////////////////////////////#ifndef __LEAKS_H__#define __LEAKS_H__#ifdef _DEBUG#define _CRTDBG_MAP_ALLOC // include Microsoft memory leak detection procedures//#define _INC_MALLOC	     // exclude standard memory alloc procedures#define   malloc(s)         _malloc_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)#define   calloc(c, s)      _calloc_dbg(c, s, _NORMAL_BLOCK, __FILE__, __LINE__)#define   realloc(p, s)     _realloc_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__)//#define   _expand(p, s)     _expand_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__)//#define   free(p)           _free_dbg(p, _NORMAL_BLOCK)//#define   _msize(p)         _msize_dbg(p, _NORMAL_BLOCK)//#include <stdlib.h>#include <stdlib_hack.h>#include <crtdbg.h>#endif#endif//////////////////////////////////////

⌨️ 快捷键说明

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