Integrate new result macros. (#1780)
* result: try out some experimental shenanigans * result: sketch out some more shenanigans * result: see what it looks like to convert kernel to use result conds instead of guards * make rest of kernel use experimental new macro-ing
This commit is contained in:
@@ -55,7 +55,7 @@ namespace ams::kern {
|
||||
Result PutUserString(ams::kern::svc::KUserPointer<const char *> user_str, size_t len) {
|
||||
/* Only print if the implementation is initialized. */
|
||||
if (!g_initialized_impl) {
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
#if defined(MESOSPHERE_DEBUG_LOG_USE_SEMIHOSTING)
|
||||
@@ -78,7 +78,7 @@ namespace ams::kern {
|
||||
KDebugLogImpl::Flush();
|
||||
#endif
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -173,7 +173,7 @@ namespace ams::kern {
|
||||
MESOSPHERE_UNUSED(user_str, len);
|
||||
#endif
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
void KDebugLog::Save() {
|
||||
|
||||
Reference in New Issue
Block a user