summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar bunnei2021-02-04 16:56:57 -0800
committerGravatar bunnei2021-02-05 14:03:36 -0800
commitea4f62615e71cd2b680517b7609928ed0abf216d (patch)
treee324ee348627fccb5706ad11fcb316877f4aaa3f /src/common
parenthle: kernel: KAddressArbiter: Remove noisy error log. (diff)
downloadyuzu-ea4f62615e71cd2b680517b7609928ed0abf216d.tar.gz
yuzu-ea4f62615e71cd2b680517b7609928ed0abf216d.tar.xz
yuzu-ea4f62615e71cd2b680517b7609928ed0abf216d.zip
hle: kernel: Drop R_UNLESS_NOLOG in favor of expanded if-statement.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/common_funcs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index cd3207a03..71b64e32a 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -104,14 +104,6 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
104 } \ 104 } \
105 } 105 }
106 106
107/// Evaluates a boolean expression, and returns a result unless that expression is true.
108#define R_UNLESS_NOLOG(expr, res) \
109 { \
110 if (!(expr)) { \
111 return res; \
112 } \
113 }
114
115#define R_SUCCEEDED(res) (res.IsSuccess()) 107#define R_SUCCEEDED(res) (res.IsSuccess())
116 108
117/// Evaluates an expression that returns a result, and returns the result if it would fail. 109/// Evaluates an expression that returns a result, and returns the result if it would fail.