[ox/std] Reorder Error fields to allow for better packing
This commit is contained in:
		
							
								
								
									
										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) { | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user