mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-22 12:34:47 +00:00
results: add R_SUCCEED_IF
This commit is contained in:
parent
98e728a589
commit
8d1d1f7999
1 changed files with 3 additions and 0 deletions
|
@ -264,6 +264,9 @@ namespace ams {
|
|||
} \
|
||||
})
|
||||
|
||||
/// Evaluates a boolean expression, and succeeds if that expression is true.
|
||||
#define R_SUCCEED_IF(expr) R_UNLESS(!(expr), ResultSuccess())
|
||||
|
||||
/// Helpers for pattern-matching on a result expression, if the result would fail.
|
||||
#define R_CURRENT_RESULT _tmp_r_current_result
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue