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