mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-13 20:52:15 +02:00
results: add R_SUCCEED_IF
This commit is contained in:
parent
98e728a589
commit
8d1d1f7999
@ -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…
Reference in New Issue
Block a user