ams: use R_SUCCEED, R_THROW globally
This commit is contained in:
@@ -158,7 +158,7 @@ namespace ams::time::impl::util {
|
||||
R_UNLESS(from.source_id == to.source_id, time::ResultNotComparable());
|
||||
|
||||
R_UNLESS(ams::util::TrySubtractWithoutOverflow(out, to.value, from.value), time::ResultOverflowed());
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
bool IsValidDate(int year, int month, int day) {
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace ams::time {
|
||||
if (g_initialize_count > 0) {
|
||||
AMS_ABORT_UNLESS(mode == g_initialize_mode);
|
||||
g_initialize_count++;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
#if defined(ATMOSPHERE_OS_HORIZON)
|
||||
@@ -67,7 +67,7 @@ namespace ams::time {
|
||||
|
||||
g_initialize_count++;
|
||||
g_initialize_mode = mode;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -102,7 +102,7 @@ namespace ams::time {
|
||||
}
|
||||
}
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
bool IsInitialized() {
|
||||
|
||||
Reference in New Issue
Block a user