From 8bdcd814a9cb397aac8d7ef7acb33d6e9c306654 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 2 Jul 2024 18:00:52 +0200 Subject: [PATCH] includes/std: Added std::unimplemented() --- includes/std/sys.pat | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/std/sys.pat b/includes/std/sys.pat index 80bd805..9a8fc5d 100644 --- a/includes/std/sys.pat +++ b/includes/std/sys.pat @@ -49,4 +49,11 @@ namespace auto std { return builtin::std::sizeof_pack(pack); }; + /** + Throws an error notifying the developer that the current codepath is not implemented currently. + */ + fn unimplemented() { + std::error("Unimplemented code path reached!"); + }; + } \ No newline at end of file