mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-30 14:35:17 -04:00
ams: use R_SUCCEED, R_THROW globally
This commit is contained in:
parent
e5b1739f65
commit
dd78ede99f
370 changed files with 2107 additions and 2107 deletions
|
@ -111,7 +111,7 @@ namespace ams::htclow {
|
|||
AMS_ASSERT(received <= size);
|
||||
*out = received;
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result Channel::Send(s64 *out, const void *src, s64 size) {
|
||||
|
@ -149,7 +149,7 @@ namespace ams::htclow {
|
|||
AMS_ASSERT(total_sent <= size);
|
||||
*out = total_sent;
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
void Channel::SetConfig(const ChannelConfig &config) {
|
||||
|
@ -207,7 +207,7 @@ namespace ams::htclow {
|
|||
AMS_ASSERT(util::IsIntValueRepresentable<s64>(received));
|
||||
*out = static_cast<s64>(received);
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result Channel::WaitReceiveInternal(s64 size, os::EventType *event) {
|
||||
|
@ -222,7 +222,7 @@ namespace ams::htclow {
|
|||
if (event != nullptr) {
|
||||
if (os::WaitAny(event, m_manager->GetTaskEvent(task_id)) == 0) {
|
||||
m_manager->WaitReceiveEnd(task_id);
|
||||
return htclow::ResultChannelWaitCancelled();
|
||||
R_THROW(htclow::ResultChannelWaitCancelled());
|
||||
}
|
||||
} else {
|
||||
this->WaitEvent(m_manager->GetTaskEvent(task_id), false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue