diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-20 05:53:11 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:26 +0100 |
commit | bb966d3e336ce1eee86daca5db00b29a63708d4c (patch) | |
tree | b6b634ed496622d16b1f814839a53d9c510e120f /src | |
parent | core: hle: kernel: object: Implement Finalize() virtual method. (diff) | |
download | yuzu-bb966d3e336ce1eee86daca5db00b29a63708d4c.tar yuzu-bb966d3e336ce1eee86daca5db00b29a63708d4c.tar.gz yuzu-bb966d3e336ce1eee86daca5db00b29a63708d4c.tar.bz2 yuzu-bb966d3e336ce1eee86daca5db00b29a63708d4c.tar.lz yuzu-bb966d3e336ce1eee86daca5db00b29a63708d4c.tar.xz yuzu-bb966d3e336ce1eee86daca5db00b29a63708d4c.tar.zst yuzu-bb966d3e336ce1eee86daca5db00b29a63708d4c.zip |
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); } \ } +/// 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) { |