Here's one method I've heard of folks use. But I've never seen it in the wild.
And that only pertains to C since RAII allows you to accomplish this more idiomatically in C++.
void foo()
{
if (!doA())
...READ MORE
Aug 2, 2022
in C++
by
Damon
• 4,960 points
•
558 views