aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/exception_handling/assert.cpp
blob: b2963de36f970493d3e7a1ac6790a21e7ea2d575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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