mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-27 15:11:01 +00:00
Fix printing
This commit is contained in:
@@ -146,6 +146,13 @@ void logger::print(const color c, const char* message, ...)
|
||||
this->print_message(c, data);
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE(cert-dcl50-cpp)
|
||||
void logger::force_print(const color c, const char* message, ...)
|
||||
{
|
||||
format_to_string(message, data);
|
||||
this->print_message(c, data, true);
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE(cert-dcl50-cpp)
|
||||
void logger::info(const char* message, ...) const
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@ class logger : public generic_logger
|
||||
public:
|
||||
void print(color c, std::string_view message) override;
|
||||
void print(color c, const char* message, ...) override FORMAT_ATTRIBUTE(3, 4);
|
||||
void force_print(color c, const char* message, ...) FORMAT_ATTRIBUTE(3, 4);
|
||||
void info(const char* message, ...) const FORMAT_ATTRIBUTE(2, 3);
|
||||
void warn(const char* message, ...) const FORMAT_ATTRIBUTE(2, 3);
|
||||
void error(const char* message, ...) const FORMAT_ATTRIBUTE(2, 3);
|
||||
|
||||
Reference in New Issue
Block a user