X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flog.hpp;h=9cd5a62559eff5efd3f8cb3f76f733986876b2d3;hb=af79f0712f972a0730f8a0220f927b22d568a196;hp=c666df31e0bd6a9ee46fdf9af20ac6a08f231e66;hpb=e6a940db5904743e8220491ce10b5107e119a44c;p=supertux.git diff --git a/src/log.hpp b/src/log.hpp index c666df31e..9cd5a6255 100644 --- a/src/log.hpp +++ b/src/log.hpp @@ -1,5 +1,5 @@ -// $Id: debug.cpp 2650 2005-06-28 12:42:08Z sommer $ -// +// $Id$ +// // SuperTux Debug Helper Functions // Copyright (C) 2006 Christoph Sommer // @@ -12,7 +12,7 @@ // 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, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -30,22 +30,22 @@ namespace { inline std::ostream& log_debug_f(const char* file, int line) { - Console::output << "[DEBUG] " << file << " l." << line << ": "; + Console::output << "[DEBUG] " << file << ":" << line << " "; return Console::output; } inline std::ostream& log_info_f(const char* file, int line) { - Console::output << "[INFO] " << file << " l." << line << ": "; + Console::output << "[INFO] " << file << ":" << line << " "; return Console::output; } inline std::ostream& log_warning_f(const char* file, int line) { - Console::output << "[WARNING] " << file << " l." << line << ": "; + Console::output << "[WARNING] " << file << ":" << line << " "; return Console::output; } inline std::ostream& log_fatal_f(const char* file, int line) { - Console::output << "[FATAL] " << file << " l." << line << ": "; + Console::output << "[FATAL] " << file << ":" << line << " "; return Console::output; } @@ -73,11 +73,15 @@ inline std::ostream& log_fatal_f() { } #define log_debug if (0) std::cerr -#define log_info Console::output +#define log_info std::cout #define log_warning log_warning_f() #define log_fatal log_fatal_f() #endif -#endif +class Vector; +std::ostream& operator<< (std::ostream& str, const Vector& vector); +class Rect; +std::ostream& operator<< (std::ostream& str, const Rect& rect); +#endif