From 2dfe5b192eebe837f06866fbe92b44209cd4b913 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 27 Apr 2020 10:33:51 -0700 Subject: [PATCH] result: add R_CATCH_MODULE --- .../libvapours/include/vapours/results/results_common.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/libvapours/include/vapours/results/results_common.hpp b/libraries/libvapours/include/vapours/results/results_common.hpp index 1fb735f88..0e2fecc97 100644 --- a/libraries/libvapours/include/vapours/results/results_common.hpp +++ b/libraries/libvapours/include/vapours/results/results_common.hpp @@ -289,6 +289,10 @@ namespace ams::result::impl { } else if (::ams::result::impl::AnyIncludes<__VA_ARGS__>(R_CURRENT_RESULT)) { \ if (true) +#define R_CATCH_MODULE(__module__) \ + } else if ((R_CURRENT_RESULT).GetModule() == ::ams::R_NAMESPACE_MODULE_ID(__module__)) { \ + if (true) + #define R_CONVERT(catch_type, convert_type) \ R_CATCH(catch_type) { return static_cast<::ams::Result>(convert_type); }