X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flog.hpp;h=4d4b74b9827cea450e8909c8fa52ac11e66c3c0a;hb=5c21e01c30deee6285d7c08a226f5265390dc0d7;hp=716c1299a72ff4c58260fc5f8343a0d1c5a7e196;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/log.hpp b/src/log.hpp index 716c1299a..4d4b74b98 100644 --- a/src/log.hpp +++ b/src/log.hpp @@ -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; } @@ -79,5 +79,10 @@ inline std::ostream& log_fatal_f() { #endif +class Vector; +std::ostream& operator<< (std::ostream& str, const Vector& vector); +class Rect; +std::ostream& operator<< (std::ostream& str, const Rect& rect); + #endif