leaks.h
来自「主要进行大规模的电路综合」· C头文件 代码 · 共 31 行
H
31 行
///////////////////////////////////////////////////////////////////////// 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 + =
减小字号Ctrl + -
显示快捷键?