mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 04:16:24 -05:00
ResultCode: Mark any error code that isn't 0 as an error.
This commit is contained in:
parent
65f3119074
commit
6e38081165
1 changed files with 2 additions and 2 deletions
|
@ -108,11 +108,11 @@ union ResultCode {
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool IsSuccess() const {
|
constexpr bool IsSuccess() const {
|
||||||
return is_error.ExtractValue(raw) == 0;
|
return raw == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool IsError() const {
|
constexpr bool IsError() const {
|
||||||
return is_error.ExtractValue(raw) == 1;
|
return raw != 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue