Move userspace to a templated StrFormat.

This commit is contained in:
Drew Galbraith 2023-11-03 02:48:21 -07:00
parent d9df1212b7
commit 26b61db021
25 changed files with 263 additions and 217 deletions

View file

@ -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.