This commit is contained in:
nub31
2025-09-06 22:07:17 +02:00
parent 45a9023bab
commit 4f55956fee
32 changed files with 89 additions and 83 deletions

14
src/lib/assert.h Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include <arch.h>
// In arch code, make sure arch_api.panic is set up befire calling
static inline void assert(bool condition, const char* msg)
{
#if DEBUG
if (!condition)
{
arch_api.panic();
}
#endif
}