[Mammoth] Move remaining classes to a shared folder.

This commit is contained in:
Drew Galbraith 2023-11-22 14:39:27 -08:00
parent c42fb858ba
commit 5f8d577948
39 changed files with 55 additions and 56 deletions

20
lib/mammoth/util/debug.h Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include <glacier/string/str_format.h>
#include <glacier/string/string_view.h>
#include <stdint.h>
#include <ztypes.h>
// TODO: Take StringView here instead.
void dbgln(const glcr::String& string);
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.
void check(uint64_t);
void crash(const char*, z_err_t);