[7833] Implement levelup spells for non-hunter pets.
[getmangos.git] / src / shared / MemoryLeaks.h
blob4e98961fbd75322e0a3ae4923f178a8bbbc6ac8c
1 /*
2 * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef MANGOSSERVER_MEMORY_H
20 #define MANGOSSERVER_MEMORY_H
22 #include "Platform/CompilerDefs.h"
24 #if COMPILER == COMPILER_MICROSOFT
26 #ifndef _WIN64
27 // Visual Leak Detector support enabled
28 //#include <vld/vld.h>
29 // standard Visual Studio leak check disabled,
30 //# define _CRTDBG_MAP_ALLOC
31 //# include <stdlib.h>
32 //# include <crtdbg.h>
33 #else
34 //# define _CRTDBG_MAP_ALLOC
35 //# include <stdlib.h>
36 //# include <crtdbg.h>
37 #endif
39 #endif
42 #include "Policies/Singleton.h"
44 struct MemoryManager : public MaNGOS::Singleton < MemoryManager >
46 MemoryManager();
48 #endif