diff options
| author | 2021-01-24 22:50:36 -0800 | |
|---|---|---|
| committer | 2021-01-28 21:42:26 -0800 | |
| commit | 091e9e8c4100308c3c8d367f7fd32290cd053f40 (patch) | |
| tree | 774c15f0f4b052fe3c3e4840fe0eb01b89ab2708 /src | |
| parent | hle: kernel: Allocate a dummy KThread for each host thread, and use it for sc... (diff) | |
| download | yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar.gz yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar.xz yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.zip | |
common: common_funcs: Log error on R_UNLESS.
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 842d62ca7..71d136d4a 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -97,6 +97,9 @@ __declspec(dllimport) void __stdcall DebugBreak(void); | |||
| 97 | #define R_UNLESS(expr, res) \ | 97 | #define R_UNLESS(expr, res) \ |
| 98 | { \ | 98 | { \ |
| 99 | if (!(expr)) { \ | 99 | if (!(expr)) { \ |
| 100 | if (res.IsError()) { \ | ||
| 101 | LOG_CRITICAL(Kernel, "Failed with error {}", res.raw); \ | ||
| 102 | } \ | ||
| 100 | return res; \ | 103 | return res; \ |
| 101 | } \ | 104 | } \ |
| 102 | } | 105 | } |