Compare commits
No commits in common. "cf8a8c145a6d36dc7bf6cc9d807b9520d10ef510" and "37547ec64071decd7ddb03e77acc427cd7543d9b" have entirely different histories.
cf8a8c145a
...
37547ec640
@ -143,6 +143,7 @@ static Result<void> load_service(StringView path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fprintf(g_init_log, "[init] skipping unknown entry name %s\n", parts[0].chars());
|
fprintf(g_init_log, "[init] skipping unknown entry name %s\n", parts[0].chars());
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (service.name.is_empty())
|
if (service.name.is_empty())
|
||||||
|
@ -237,21 +237,25 @@ template <> class Result<void>
|
|||||||
void value(SourceLocation caller = SourceLocation::current()) const
|
void value(SourceLocation caller = SourceLocation::current()) const
|
||||||
{
|
{
|
||||||
expect_at(has_value(), caller, "Result::value() called on a Result that holds an error");
|
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
|
void expect_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
|
||||||
{
|
{
|
||||||
expect_at(has_value(), caller, reason);
|
expect_at(has_value(), caller, reason);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void release_value(SourceLocation caller = SourceLocation::current()) const
|
void release_value(SourceLocation caller = SourceLocation::current()) const
|
||||||
{
|
{
|
||||||
expect_at(has_value(), caller, "Result::release_value() called on a Result that holds an error");
|
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
|
void expect_release_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
|
||||||
{
|
{
|
||||||
expect_at(has_value(), caller, reason);
|
expect_at(has_value(), caller, reason);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user