mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-14 00:56:35 +00:00
result: add R_CATCH_MODULE
This commit is contained in:
parent
52c89a76b2
commit
2dfe5b192e
1 changed files with 4 additions and 0 deletions
|
@ -289,6 +289,10 @@ namespace ams::result::impl {
|
||||||
} else if (::ams::result::impl::AnyIncludes<__VA_ARGS__>(R_CURRENT_RESULT)) { \
|
} else if (::ams::result::impl::AnyIncludes<__VA_ARGS__>(R_CURRENT_RESULT)) { \
|
||||||
if (true)
|
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) \
|
#define R_CONVERT(catch_type, convert_type) \
|
||||||
R_CATCH(catch_type) { return static_cast<::ams::Result>(convert_type); }
|
R_CATCH(catch_type) { return static_cast<::ams::Result>(convert_type); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue