result: Make fully constexpr, add ON_RESULT_INCLUDED
This commit is contained in:
parent
c60ab6bbf6
commit
54372fdff5
9 changed files with 57 additions and 29 deletions
|
@ -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()},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue