LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void>

This allows us to use TRY() in decoding helpers, leading to a nice
reduction in line count.
This commit is contained in:
Andreas Kling
2021-11-28 11:56:31 +01:00
parent 8d76eb773f
commit cb9cac4e40
Notes: sideshowbarker 2024-07-18 00:33:35 +09:00
21 changed files with 207 additions and 296 deletions

View File

@@ -386,7 +386,7 @@ public:
parameter_generator.append(R"~~~(
@parameter.type@ @parameter.name@ = @parameter.initial_value@;
if (!decoder.decode(@parameter.name@))
if (decoder.decode(@parameter.name@).is_error())
return {};
)~~~");