mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-10-31 12:27:53 +00:00
common: common_funcs: Log error on R_UNLESS.
This commit is contained in:
parent
6e953f7f02
commit
091e9e8c41
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
|
||||||
#define R_UNLESS(expr, res) \
|
#define R_UNLESS(expr, res) \
|
||||||
{ \
|
{ \
|
||||||
if (!(expr)) { \
|
if (!(expr)) { \
|
||||||
|
if (res.IsError()) { \
|
||||||
|
LOG_CRITICAL(Kernel, "Failed with error {}", res.raw); \
|
||||||
|
} \
|
||||||
return res; \
|
return res; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue