[ox/std] Reorder Error fields to allow for better packing
This commit is contained in:
parent
4cd8f6a0c1
commit
314ed8d05c
2
deps/ox/src/ox/std/error.hpp
vendored
2
deps/ox/src/ox/std/error.hpp
vendored
@ -20,10 +20,10 @@ namespace ox {
|
|||||||
using ErrorCode = uint16_t;
|
using ErrorCode = uint16_t;
|
||||||
|
|
||||||
struct [[nodiscard]] Error {
|
struct [[nodiscard]] Error {
|
||||||
ErrorCode errCode = 0;
|
|
||||||
const char *msg = nullptr;
|
const char *msg = nullptr;
|
||||||
const char *file = nullptr;
|
const char *file = nullptr;
|
||||||
uint16_t line = 0;
|
uint16_t line = 0;
|
||||||
|
ErrorCode errCode = 0;
|
||||||
|
|
||||||
explicit constexpr Error(ErrorCode ec = 0) noexcept: errCode(ec) {
|
explicit constexpr Error(ErrorCode ec = 0) noexcept: errCode(ec) {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user