From c38f588dc7d187706dba0167b857f9414b908cc4 Mon Sep 17 00:00:00 2001 From: camila314 <47485054+camila314@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:02:31 -0500 Subject: [PATCH] add disregard --- loader/include/Geode/utils/Result.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loader/include/Geode/utils/Result.hpp b/loader/include/Geode/utils/Result.hpp index dff90491..b7ce5f71 100644 --- a/loader/include/Geode/utils/Result.hpp +++ b/loader/include/Geode/utils/Result.hpp @@ -256,6 +256,12 @@ namespace geode { } return std::nullopt; } + + /** + * Completely disregard the result. Only recommended if the result is + * inconsequential + */ + constexpr void disregard() && {} }; template