Changeset View
Changeset View
Standalone View
Standalone View
source/third_party/tinygettext/include/tinygettext/log_stream.hpp
Show All 21 Lines | |||||
#include "log.hpp" | #include "log.hpp" | ||||
namespace tinygettext { | namespace tinygettext { | ||||
// FIXME: very bad to have such things in the API | // FIXME: very bad to have such things in the API | ||||
#define log_error if (!Log::log_error_callback); else (Log(Log::log_error_callback)).get() | #define log_error if (!Log::log_error_callback); else (Log(Log::log_error_callback)).get() | ||||
#define log_warning if (!Log::log_warning_callback); else (Log(Log::log_warning_callback)).get() | #define log_warning if (!Log::log_warning_callback); else (Log(Log::log_warning_callback)).get() | ||||
#define log_info if (!Log::log_info_callback); else (Log(Log::log_warning_callback)).get() | #define log_info if (!Log::log_info_callback); else (Log(Log::log_info_callback)).get() | ||||
} // namespace tinygettext | } // namespace tinygettext | ||||
#endif | #endif | ||||
/* EOF */ | /* EOF */ |
Wildfire Games · Phabricator