Skip to content

QuantumGate::Console::AddMessage

Karel Donk edited this page Jun 16, 2018 · 4 revisions

Adds a message to the console.

Signature

static void AddMessage(const MessageType type, const StringView message, ...);

Parameters

Name Description
type The QuantumGate::Console::MessageType of the message.
message The message to add including formatting of ... arguments. Uses the same format specifiers as std::printf.
... Arguments that should be substituted into the message.

Examples

// Adds an error message to the console output
QuantumGate::Console::AddMessage(QuantumGate::Console::MessageType::Error,
    L"There was an error with code %u", 5u);
Clone this wiki locally