results: add R_SUCCEED_IF

This commit is contained in:
Michael Scire 2020-03-06 01:50:58 -08:00
parent 98e728a589
commit 8d1d1f7999

View file

@ -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