mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-19 11:22:41 +00:00
result: Make fully constexpr, add ON_RESULT_INCLUDED
This commit is contained in:
@@ -27,8 +27,8 @@ struct ErrorCode {
|
||||
|
||||
static constexpr ErrorCode FromResult(Result result) {
|
||||
return {
|
||||
.error_category{2000 + static_cast<u32>(result.module.Value())},
|
||||
.error_number{result.description.Value()},
|
||||
.error_category{2000 + static_cast<u32>(result.GetModule())},
|
||||
.error_number{result.GetDescription()},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user