Compare commits

...

2 Commits

2 changed files with 0 additions and 5 deletions
apps
libluna/include/luna

@ -143,7 +143,6 @@ static Result<void> load_service(StringView path)
}
fprintf(g_init_log, "[init] skipping unknown entry name %s\n", parts[0].chars());
continue;
}
if (service.name.is_empty())

@ -237,25 +237,21 @@ template <> class Result<void>
void value(SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, "Result::value() called on a Result that holds an error");
return;
}
void expect_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, reason);
return;
}
void release_value(SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, "Result::release_value() called on a Result that holds an error");
return;
}
void expect_release_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, reason);
return;
}
private: