src: replace macro with lambda
Makes it debuggable and easier to reason about.
I'm not sure if it would be worthwhile to replace V([] {})
with V([&] {})
for consistency. Also, couldn't find any other usages of parameterless lambdas in the codebase, so I'm not sure if this is the right style. (as opposed to []{}
, without a space)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
src