mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Add an optional context string for status line messges
This commit is contained in:
@@ -35,14 +35,14 @@ private:
|
||||
class status_line
|
||||
{
|
||||
public:
|
||||
status_line(const wchar_t *message);
|
||||
status_line(const wchar_t *message, const wchar_t *context = nullptr);
|
||||
~status_line();
|
||||
|
||||
inline static void warn(const wchar_t *message, const wchar_t *error=nullptr) {
|
||||
inline static void warn(const wchar_t *message, const wchar_t *error = nullptr) {
|
||||
if (s_current) s_current->do_warn(message, error);
|
||||
}
|
||||
|
||||
inline static void fail(const wchar_t *message, const wchar_t *error=nullptr) {
|
||||
inline static void fail(const wchar_t *message, const wchar_t *error = nullptr) {
|
||||
if (s_current) s_current->do_fail(message, error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user