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