[Glacier] Add a specific VariableStringBuilder for StrFormat.
This commit is contained in:
parent
a745f45b5d
commit
601f29c324
6 changed files with 58 additions and 24 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include <ztypes.h>
|
||||
|
||||
// TODO: Take StringView here instead.
|
||||
void dbgln(const glcr::StringBuilder& builder);
|
||||
void dbgln(const glcr::String& string);
|
||||
|
||||
template <typename... Args>
|
||||
void dbgln(const glcr::StringView& fmt, Args... args) {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
#include <glacier/status/error.h>
|
||||
#include <zcall.h>
|
||||
|
||||
void dbgln(const glcr::StringBuilder& builder) {
|
||||
glcr::String str = builder.ToString();
|
||||
(void)ZDebug(str.cstr());
|
||||
}
|
||||
void dbgln(const glcr::String& string) { (void)ZDebug(string.cstr()); }
|
||||
|
||||
void check(uint64_t code) {
|
||||
switch (code) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue