diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-23 10:32:15 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-23 10:32:15 +0100 |
| commit | 48a2c33d205397adeaad385aebc1d1e008915b3e (patch) | |
| tree | 379265414d551747585a1f86b9f390539ef2dfeb /libs/kstd/tests/src/os_panic.cpp | |
| parent | 754012dd458985a6a4953c99204c6651318892b2 (diff) | |
| download | teachos-48a2c33d205397adeaad385aebc1d1e008915b3e.tar.xz teachos-48a2c33d205397adeaad385aebc1d1e008915b3e.zip | |
ci: enable test builds
Diffstat (limited to 'libs/kstd/tests/src/os_panic.cpp')
| -rw-r--r-- | libs/kstd/tests/src/os_panic.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/kstd/tests/src/os_panic.cpp b/libs/kstd/tests/src/os_panic.cpp new file mode 100644 index 0000000..3eae6ff --- /dev/null +++ b/libs/kstd/tests/src/os_panic.cpp @@ -0,0 +1,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
\ No newline at end of file |
