blob: 86696f8f92667d8d9ac96a72e716ab47a23d4bec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "arch/exception_handling/assert.hpp"
#include "arch/exception_handling/panic.hpp"
namespace teachos::arch::exception_handling
{
auto assert(bool condition, char const * message) -> void
{
if (condition)
{
return;
}
panic("Assertion Violation: ", message);
}
} // namespace teachos::arch::exception_handling
|