diff options
| author | 2022-10-14 22:55:51 -0700 | |
|---|---|---|
| committer | 2022-10-18 19:13:35 -0700 | |
| commit | 829e82e264504696ce1d0ae9421a53d16bf104ea (patch) | |
| tree | ce5c5f35eec6c801c51d7ff6242cbd42ad2d84f8 /src/core/hle/result.h | |
| parent | core: Partially persist emulation state across game boots. (diff) | |
| download | yuzu-829e82e264504696ce1d0ae9421a53d16bf104ea.tar.gz yuzu-829e82e264504696ce1d0ae9421a53d16bf104ea.tar.xz yuzu-829e82e264504696ce1d0ae9421a53d16bf104ea.zip | |
core: hle: kernel: Use result macros for new/changed code.
Diffstat (limited to 'src/core/hle/result.h')
| -rw-r--r-- | src/core/hle/result.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h index d714dea38..ef4b2d417 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h | |||
| @@ -470,9 +470,6 @@ constexpr inline Result __TmpCurrentResultReference = ResultSuccess; | |||
| 470 | #define R_UNLESS(expr, res) \ | 470 | #define R_UNLESS(expr, res) \ |
| 471 | { \ | 471 | { \ |
| 472 | if (!(expr)) { \ | 472 | if (!(expr)) { \ |
| 473 | if (res.IsError()) { \ | ||
| 474 | LOG_ERROR(Kernel, "Failed with result: {}", res.raw); \ | ||
| 475 | } \ | ||
| 476 | R_THROW(res); \ | 473 | R_THROW(res); \ |
| 477 | } \ | 474 | } \ |
| 478 | } | 475 | } |