/*************************************************************************** macros.h - description ------------------- begin : september 21th, 2003 copyright : (C) 2003-2007 by Duong Khang NGUYEN email : neoneurone @ gmail com $Id: macros.h 375 2008-10-28 14:47:15Z neoneurone $ ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _OPENCITY_MACROS_H_ #define _OPENCITY_MACROS_H_ 1 #include #include // for assert() => ifdef NDEBUG: do nothing using std::cout; using std::endl; using std::cerr; // Debug message macro #ifndef NDEBUG #define OPENCITY_DEBUG( msg ) { \ cout << " " << __FILE__ << " " << __LINE__ << " : " << msg << endl; \ } #else #define OPENCITY_DEBUG(msg) #endif // Information message macro #define OPENCITY_INFO( msg ) { \ cout << " " << msg << endl; \ } // Option message macro #define OPENCITY_OPTION( msg ) { \ cout << "