Move userspace to a templated StrFormat.
This commit is contained in:
parent
d9df1212b7
commit
26b61db021
25 changed files with 263 additions and 217 deletions
|
|
@ -1,9 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <glacier/string/str_format.h>
|
||||
#include <glacier/string/string_view.h>
|
||||
#include <stdint.h>
|
||||
#include <ztypes.h>
|
||||
|
||||
void dbgln(const char* fmt, ...);
|
||||
// TODO: Take StringView here instead.
|
||||
void dbgln(const glcr::StringBuilder& builder);
|
||||
|
||||
template <typename... Args>
|
||||
void dbgln(const glcr::StringView& fmt, Args... args) {
|
||||
dbgln(StrFormat(fmt, args...));
|
||||
}
|
||||
|
||||
// Checks that the code is ok.
|
||||
// if not exits the process.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue