Initial commit, includes Lua with broken Luabind as a backup for branching purposes
[terrastrategy.git] / include / mem_off.h
blob798e6055dc93dbf3f7164253c7943cb34a7bc8db
1 //
2 // Copyright (C) 2008 by Martin Moracek
3 //
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.
8 //
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 // ----------------------------------------------------------------------------
20 // Originally created on 12/22/2000 by Paul Nettle
22 // Copyright 2000, Fluid Studios, Inc., all rights reserved.
24 // For more information, visit HTTP://www.FluidStudios.com
25 // ----------------------------------------------------------------------------
27 /**
28 * @file mem_off.h
30 * Contains macros for disabling the overriden new/delete macros.
33 // defines MEM_MANAGER_ON macro
34 #include "config.h"
36 #ifdef MEM_MANAGER_ON
38 #ifdef new
39 # undef new
40 #endif
42 #ifdef delete
43 # undef delete
44 #endif
46 #ifdef malloc
47 # undef malloc
48 #endif
50 #ifdef calloc
51 # undef calloc
52 #endif
54 #ifdef realloc
55 # undef realloc
56 #endif
58 #ifdef free
59 # undef free
60 #endif
62 #endif /* MEM_MANAGER_ON */