diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-25 07:50:36 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:26 +0100 |
commit | 091e9e8c4100308c3c8d367f7fd32290cd053f40 (patch) | |
tree | 774c15f0f4b052fe3c3e4840fe0eb01b89ab2708 | |
parent | hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling. (diff) | |
download | yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar.gz yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar.bz2 yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar.lz yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar.xz yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.tar.zst yuzu-091e9e8c4100308c3c8d367f7fd32290cd053f40.zip |
Diffstat (limited to '')
-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); #define R_UNLESS(expr, res) \ { \ if (!(expr)) { \ + if (res.IsError()) { \ + LOG_CRITICAL(Kernel, "Failed with error {}", res.raw); \ + } \ return res; \ } \ } |