File indexing completed on 2024-04-28 04:04:43
0001 /**************************************************************************** 0002 * Copyright 2009 Ian Wadham <iandw.au@gmail.com> * 0003 * * 0004 * This program is free software; you can redistribute it and/or * 0005 * modify it under the terms of the GNU General Public License as * 0006 * published by the Free Software Foundation; either version 2 of * 0007 * the License, or (at your option) any later version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, * 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0012 * GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License * 0015 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 0016 ****************************************************************************/ 0017 0018 #ifndef KGRDEBUG_H 0019 #define KGRDEBUG_H 0020 0021 static int dbgLevel = 0; // Local to file where kgrdebug.h is included. 0022 0023 #define dbo printf( 0024 #define dbo1 if(dbgLevel>=1)printf( 0025 #define dbo2 if(dbgLevel>=2)printf( 0026 #define dbo3 if(dbgLevel>=3)printf( 0027 0028 #endif