EMIPLIB  1.2.1
mipdebug.h
1 /*
2 
3  This file is a part of EMIPLIB, the EDM Media over IP Library.
4 
5  Copyright (C) 2006-2016 Hasselt University - Expertise Centre for
6  Digital Media (EDM) (http://www.edm.uhasselt.be)
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Lesser General Public
10  License as published by the Free Software Foundation; either
11  version 2.1 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
21  USA
22 
23 */
24 
25 #ifndef MIPDEBUG_H
26 
27 #define MIPDEBUG_H
28 
29 #include "mipconfig.h"
30 
31 #ifdef MIPDEBUG
32 
33 #include "miptypes.h"
34 
35 void *operator new(size_t s,char filename[],int line);
36 void *operator new[](size_t s,char filename[],int line);
37 
38 #define new new (__FILE__,__LINE__)
39 
40 #endif // MIPDEBUG
41 
42 #endif // MIPDEBUG_H
43