From 763f38fff9336e40fce27565861e85c95d003a12 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 14 Jul 2025 20:14:38 +0000 Subject: libs: move vector to kstd --- kern/CMakeLists.txt | 1 + kern/src/kstd.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 kern/src/kstd.cpp (limited to 'kern') diff --git a/kern/CMakeLists.txt b/kern/CMakeLists.txt index 52c2cb5..677fdc2 100644 --- a/kern/CMakeLists.txt +++ b/kern/CMakeLists.txt @@ -4,6 +4,7 @@ add_library("os::kern" ALIAS "kern") target_sources("kern" PRIVATE "src/abort.cpp" "src/error.cpp" + "src/kstd.cpp" "src/main.cpp" "src/print.cpp" ) diff --git a/kern/src/kstd.cpp b/kern/src/kstd.cpp new file mode 100644 index 0000000..1b7050b --- /dev/null +++ b/kern/src/kstd.cpp @@ -0,0 +1,10 @@ +#include "kern/error.hpp" + +#include + +namespace kstd::os +{ + + auto panic(std::string_view message, std::source_location location) -> void { teachos::panic(message, location); } + +} // namespace kstd::os \ No newline at end of file -- cgit v1.2.3