Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _MLD_H
- #define _MLD_H
- #include <iostream>
- #include <fstream>
- #include <vector>
- struct MemLeakInfo
- {
- unsigned int addr;
- unsigned int line;
- unsigned int size;
- unsigned char file;
- };
- void AddMemoryInformation(unsigned int Address, unsigned int Line, unsigned int Size, unsigned char File, std::vector<MemLeakInfo> &Vect);
- void RemoveMemoryInformation(unsigned int Address);
- void DumpInformation();
- #ifdef _DEBUG
- void* operator new(unsigned int Size, int Line, const char* File);
- void* operator new[](unsigned int Size, int Line, const char* File);
- void operator delete(void* ptr);
- void operator delete[](void* ptr);
- #endif //_DEBUG 1
- #ifdef _DEBUG
- #define MY_DEBUG_NEW new( __LINE__, __FILE__)
- #else
- #define MY_DEBUG_NEW new
- #endif //_DEBUG 2
- #endif //_MLD_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement