diff --git a/include/result/result_fnd.hpp b/include/result/result_fnd.hpp index 9d8cfba7e..9618be1c3 100644 --- a/include/result/result_fnd.hpp +++ b/include/result/result_fnd.hpp @@ -4,5 +4,5 @@ DEFINE_HORIZON_RESULT_MODULE(Result::FND, FND); namespace Result::FND { - DEFINE_HORIZON_RESULT(InvalidEnumValue, 1005, InvalidArgument, Permanent); + DEFINE_HORIZON_RESULT(InvalidEnumValue, 1005, InvalidArgument, Permanent); }; diff --git a/include/result/result_gsp.hpp b/include/result/result_gsp.hpp index 03c51f30c..00af9c374 100644 --- a/include/result/result_gsp.hpp +++ b/include/result/result_gsp.hpp @@ -4,5 +4,5 @@ DEFINE_HORIZON_RESULT_MODULE(Result::GSP, GSP); namespace Result::GSP { - DEFINE_HORIZON_RESULT(SuccessRegisterIRQ, 519, Success, Success); + DEFINE_HORIZON_RESULT(SuccessRegisterIRQ, 519, Success, Success); }; diff --git a/include/result/result_kernel.hpp b/include/result/result_kernel.hpp index 308745ecb..f788d5f78 100644 --- a/include/result/result_kernel.hpp +++ b/include/result/result_kernel.hpp @@ -4,12 +4,11 @@ DEFINE_HORIZON_RESULT_MODULE(Result::Kernel, Kernel); namespace Result::Kernel { - // Returned when a thread releases a mutex it does not own - DEFINE_HORIZON_RESULT(InvalidMutexRelease, 31, InvalidArgument, Permanent); - DEFINE_HORIZON_RESULT(NotFound, 1018, NotFound, Permanent); - DEFINE_HORIZON_RESULT(InvalidEnumValue, 1005, InvalidArgument, Permanent); - DEFINE_HORIZON_RESULT(InvalidHandle, 1015, InvalidArgument, Permanent); - - - static_assert(InvalidHandle == 0xD8E007F7, "conversion broken"); -}; + // Returned when a thread releases a mutex it does not own + DEFINE_HORIZON_RESULT(InvalidMutexRelease, 31, InvalidArgument, Permanent); + DEFINE_HORIZON_RESULT(NotFound, 1018, NotFound, Permanent); + DEFINE_HORIZON_RESULT(InvalidEnumValue, 1005, InvalidArgument, Permanent); + DEFINE_HORIZON_RESULT(InvalidHandle, 1015, InvalidArgument, Permanent); + + static_assert(InvalidHandle == 0xD8E007F7, "conversion broken"); +}; // namespace Result::Kernel diff --git a/include/result/result_os.hpp b/include/result/result_os.hpp index f9b6d4dc3..35d1f378f 100644 --- a/include/result/result_os.hpp +++ b/include/result/result_os.hpp @@ -4,11 +4,11 @@ DEFINE_HORIZON_RESULT_MODULE(Result::OS, OS); namespace Result::OS { - DEFINE_HORIZON_RESULT(PortNameTooLong, 30, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(InvalidHandle, 1015, WrongArgument, Permanent); - DEFINE_HORIZON_RESULT(InvalidCombination, 1006, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(MisalignedAddress, 1009, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(MisalignedSize, 1010, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(OutOfRange, 1021, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(Timeout, 1022, StatusChanged, Info); -}; + DEFINE_HORIZON_RESULT(PortNameTooLong, 30, InvalidArgument, Usage); + DEFINE_HORIZON_RESULT(InvalidHandle, 1015, WrongArgument, Permanent); + DEFINE_HORIZON_RESULT(InvalidCombination, 1006, InvalidArgument, Usage); + DEFINE_HORIZON_RESULT(MisalignedAddress, 1009, InvalidArgument, Usage); + DEFINE_HORIZON_RESULT(MisalignedSize, 1010, InvalidArgument, Usage); + DEFINE_HORIZON_RESULT(OutOfRange, 1021, InvalidArgument, Usage); + DEFINE_HORIZON_RESULT(Timeout, 1022, StatusChanged, Info); +}; // namespace Result::OS