YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
存储调试设施。 更多...
#include "config.h"
#include <ydef.h>
#include "../Core/ybasemac.h"
#include <new>
#include <string>
#include <list>
#include <map>
#include <cstdio>
#include <ext/malloc_allocator.h>
#include <ystdex/utility.hpp>
类 | |
class | YSLib::MemoryList |
内存块列表。 更多... | |
struct | YSLib::MemoryList::BlockInfo |
exception | YSLib::MemoryList::NewRecorder |
命名空间 | |
namespace | YSLib |
宏定义 | |
#define | ynew YSLib::MemoryList::NewRecorder(__FILE__, __LINE__)->*new |
#define | ynew_nothrow new(std::nothrow, __FILE__, __LINE__) |
#define | ydelete(p) |
#define | ydelete_array(p) |
函数 | |
YF_API MemoryList & | YSLib::GetDebugMemoryList () |
取调试用内存块列表。 | |
存储调试设施。
在文件 ynew.h 中定义.
#define ydelete | ( | p | ) |
参考自 YSLib::delete_obj_debug::operator()(),YSLib::delete_second_mem_debug::operator()() , 以及 YSLib::reset().
#define ydelete_array | ( | p | ) |
#define ynew YSLib::MemoryList::NewRecorder(__FILE__, __LINE__)->*new |