2 ms·
Perhaps its more fair to C to consider handle to be an opaque type like C#/C++. In that case the acquire block can be rewritten: handle a, b, c; if (!a
by detrino 13y ago
Perhaps its more fair to C to consider handle to be an opaque type like C#/C++.
In that case the acquire block can be rewritten:
handle a, b, c;
if (!aquire_handle(&a, 0)) goto fail1;
if (!aquire_handle(&b, 1)) goto fail2;
if (!aquire_handle(&c, 2)) goto fail3;