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