diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/common_funcs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 49c36765d..842d62ca7 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -112,6 +112,9 @@ __declspec(dllimport) void __stdcall DebugBreak(void); | |||
| 112 | } \ | 112 | } \ |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | /// Evaluates a boolean expression, and succeeds if that expression is true. | ||
| 116 | #define R_SUCCEED_IF(expr) R_UNLESS(!(expr), RESULT_SUCCESS) | ||
| 117 | |||
| 115 | namespace Common { | 118 | namespace Common { |
| 116 | 119 | ||
| 117 | [[nodiscard]] constexpr u32 MakeMagic(char a, char b, char c, char d) { | 120 | [[nodiscard]] constexpr u32 MakeMagic(char a, char b, char c, char d) { |