[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;
|
||||
|
||||
struct [[nodiscard]] Error {
|
||||
ErrorCode errCode = 0;
|
||||
const char *msg = nullptr;
|
||||
const char *file = nullptr;
|
||||
uint16_t line = 0;
|
||||
ErrorCode errCode = 0;
|
||||
|
||||
explicit constexpr Error(ErrorCode ec = 0) noexcept: errCode(ec) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user