aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/tests/src/os_panic.cpp
blob: 3eae6ff6a9cac0d0f3d461939f33f0c9b3d07f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "kstd/tests/os_panic.hpp"

#include <source_location>
#include <string>
#include <string_view>

namespace kstd::os
{

  auto panic(std::string_view message, std::source_location location)
  {
    throw kstd::tests::os_panic{std::string{message}, location};
  }

}  // namespace kstd::os