mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(ui): improve FrameXML debug routines
This commit is contained in:
parent
679ed1101f
commit
eed536042d
5 changed files with 77 additions and 27 deletions
|
|
@ -24,6 +24,16 @@ void CStatus::Add(STATUS_TYPE severity, const char* format, ...) {
|
|||
va_end(args);
|
||||
}
|
||||
|
||||
void CStatus::Prepend(STATUS_TYPE severity, const char* format, ...) {
|
||||
// TODO
|
||||
// Remove temporary console debug logging
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
vprintf(format, args);
|
||||
printf("\n");
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
CStatus& GetGlobalStatusObj() {
|
||||
return CStatus::s_errorList;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class CStatus {
|
|||
// Member functions
|
||||
void Add(const CStatus&);
|
||||
void Add(STATUS_TYPE, const char*, ...);
|
||||
void Prepend(STATUS_TYPE, const char*, ...);
|
||||
|
||||
public:
|
||||
STORM_EXPLICIT_LIST(CStatus::STATUSENTRY, link) statusList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue