Re: [RFC PATCH v3] cleanup: Add cond_guard() to conditional guards

From: Dan Williams
Date: Wed Jan 31 2024 - 20:14:36 EST


Fabio M. De Francesco wrote:
> I just noticed that this is not the final version. It misses a semicolon.
> Please discard this v3. I'm sending v4.

Ok, but do please copy the aspect of scoped_conf_guard() to take a
"_fail" statement argument. Passing a return code collector variable by
reference just feels a bit too magical. I like the explicitness of
passing the statement directly.