Skip to content

Commit

Permalink
result: add R_CATCH_MODULE
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Apr 27, 2020
1 parent 52c89a7 commit 2dfe5b1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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); }

Expand Down

0 comments on commit 2dfe5b1

Please sign in to comment.