mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-16 12:36:59 +02:00
result: Make fully constexpr, add ON_RESULT_INCLUDED
This commit is contained in:
parent
3f6c5a0a08
commit
3b98aaef24
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