mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 09:25:08 -04:00
kern: implement KResourceLimit
This commit is contained in:
parent
23f5d77f37
commit
1de607c183
17 changed files with 566 additions and 22 deletions
|
@ -69,8 +69,8 @@ namespace ams::kern {
|
|||
|
||||
#define MESOSPHERE_R_ABORT_UNLESS(expr) \
|
||||
({ \
|
||||
const ::ams::Result _tmp_meso_r_abort_res = static_cast<::ams::Result>(expr); \
|
||||
if (AMS_UNLIKELY((R_FAILED(_tmp_meso_r_abort_res))) { \
|
||||
const ::ams::Result _tmp_meso_r_abort_res = static_cast<::ams::Result>((expr)); \
|
||||
if (AMS_UNLIKELY((R_FAILED(_tmp_meso_r_abort_res)))) { \
|
||||
MESOSPHERE_PANIC("Result Abort(): %s 2%03d-%04d", #expr, _tmp_meso_r_abort_res.GetModule(), _tmp_meso_r_abort_res.GetDescription()); \
|
||||
} \
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue