VERY experimental Nintendo Switch 2 emulator
C++
common: common_funcs: Add useful kernel macro R_SUCCEED_IF.
bunnei7351708eea47
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.hindex 49c36765d4..842d62ca71 100644--- a/src/common/common_funcs.h+++ b/src/common/common_funcs.h@@ -112,6 +112,9 @@ __declspec(dllimport) void __stdcall DebugBreak(void);} \}+/// Evaluates a boolean expression, and succeeds if that expression is true.+#define R_SUCCEED_IF(expr) R_UNLESS(!(expr), RESULT_SUCCESS)+namespace Common {[[nodiscard]] constexpr u32 MakeMagic(char a, char b, char c, char d) {