[ox/std] Reorder Error fields to allow for better packing

This commit is contained in:
Gary Talent 2021-04-20 22:16:29 -05:00
parent 4cd8f6a0c1
commit 314ed8d05c

View File

@ -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) {
}