1 // $Id: debug.cpp 2650 2005-06-28 12:42:08Z sommer $
3 // SuperTux Debug Helper Functions
4 // Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 #ifndef __SUPERTUX_MSG_H__
22 #define __SUPERTUX_MSG_H__
27 #include "console.hpp"
29 // TODO: make macros more C++ish?
33 #define msg_debug(message) Console::output << "[DEBUG] " << __FILE__ << " l." << __LINE__ << ": " << message << std::endl
34 #define msg_info(message) Console::output << "[INFO] " << message << std::endl
35 #define msg_warning(message) Console::output << "[WARNING] " << __FILE__ << " l." << __LINE__ << ": " << message << std::endl
36 #define msg_fatal(message) Console::output << "[FATAL] " << __FILE__ << " l." << __LINE__ << ": " << message << std::endl
40 #define msg_debug(message)
41 #define msg_info(message) Console::output << message << std::endl
42 #define msg_warning(message) Console::output << "Warning: " << message << std::endl
43 #define msg_fatal(message) Console::output << "Fatal: " << message << std::endl