[ox/fs] Add oxPanic and remove ErrorInfo
This commit is contained in:
14
deps/ox/src/ox/std/error.hpp
vendored
14
deps/ox/src/ox/std/error.hpp
vendored
@ -39,20 +39,6 @@ struct BaseError {
|
||||
|
||||
using Error = Integer<uint64_t, BaseError>;
|
||||
|
||||
struct ErrorInfo {
|
||||
const char *file = nullptr;
|
||||
int line = -1;
|
||||
Error errCode = Error(0);
|
||||
|
||||
ErrorInfo() = default;
|
||||
|
||||
ErrorInfo(Error err) {
|
||||
this->file = err.file;
|
||||
this->line = err.line;
|
||||
this->errCode = err;
|
||||
}
|
||||
};
|
||||
|
||||
static constexpr Error _error(const char *file, uint32_t line, Error errCode) {
|
||||
Error err = errCode;
|
||||
err.file = file;
|
||||
|
Reference in New Issue
Block a user