2023-06-06 16:56:19 -07:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-03 02:48:21 -07:00
|
|
|
#include <glacier/string/str_format.h>
|
|
|
|
#include <glacier/string/string_view.h>
|
2023-06-07 00:04:53 -07:00
|
|
|
#include <stdint.h>
|
2023-06-17 01:45:53 -07:00
|
|
|
#include <ztypes.h>
|
2023-06-07 00:04:53 -07:00
|
|
|
|
2023-11-03 02:48:21 -07:00
|
|
|
// TODO: Take StringView here instead.
|
2023-11-09 08:52:30 -08:00
|
|
|
void dbgln(const glcr::String& string);
|
2023-11-03 02:48:21 -07:00
|
|
|
|
|
|
|
template <typename... Args>
|
|
|
|
void dbgln(const glcr::StringView& fmt, Args... args) {
|
|
|
|
dbgln(StrFormat(fmt, args...));
|
|
|
|
}
|
2023-06-07 00:04:53 -07:00
|
|
|
|
|
|
|
// Checks that the code is ok.
|
|
|
|
// if not exits the process.
|
|
|
|
void check(uint64_t);
|
2023-06-07 09:37:16 -07:00
|
|
|
|
|
|
|
void crash(const char*, z_err_t);
|