Reconcile debugger and save state stuff into a single implementation.
Fixes #497 and fixes #496. Still rough edges, but at least less duplication.
This commit is contained in:
@@ -58,6 +58,7 @@ std::string format_string(const char* format, va_list args) {
|
||||
max_len *= 2;
|
||||
} else {
|
||||
// Everything fit for sure.
|
||||
new_s.resize(ret);
|
||||
return new_s;
|
||||
}
|
||||
}
|
||||
@@ -81,6 +82,7 @@ std::wstring format_string(const wchar_t* format, va_list args) {
|
||||
max_len *= 2;
|
||||
} else {
|
||||
// Everything fit for sure.
|
||||
new_s.resize(ret);
|
||||
return new_s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user