История изменений
Исправление
tz4678,
(текущая версия)
:
file a = open(...);
file b = open(...);
bool res = handle(a, b);
close(a);
close(b);
if (!res)
log("critical operation bla-bla failed!");
return res;
//
bool handle(...) {
// ...
if(something_wrong0) return false;
// ...
return true;
}
Исходная версия
tz4678,
:
file a = open(...);
file b = open(...);
bool res = handle(a, b);
close(a);
close(b);
if (!res)
log("critical operation bla-bla failed!");
return res;
//
bool handle(...) {
// ...
if(something_wrong0) return FALSE;
// ...
return TRUE;
}