summaryrefslogblamecommitdiff
path: root/src/debug.h
blob: 64a83e51c309a9cadfd665b30d800fcddc0bf585 (plain) (tree)
1
2
3
                       
                                                    















                                                                         
                        
                          
                       
 
                                    
                            










                                                                      
      
/*
 *  The ManaPlus Client
 *  Copyright (C) 2011-2012  The ManaPlus Developers
 *
 *  This file is part of The ManaPlus Client.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "localconsts.h"

//#define DEBUG_JOYSTICK 1

#ifdef ENABLE_MEM_DEBUG

//define _DEBUG_NEW_EMULATE_MALLOC 1
#include "debug/debug_new.h"

#define reportFalse(val) reportFalse1(val, __FILE__, __LINE__)
#define reportFalse1(val, file, line) reportFalseReal(val, file, line)

#define reportTrue(val) reportTrue1(val, __FILE__, __LINE__)
#define reportTrue1(val, file, line) reportTrueReal(val, file, line)

#else

#define reportFalse(val) (val)
#define reportTrue(val) (val)

#endif