int checkSystemCall int result char const call char const function cha

1
2
3
4
5
6
int checkSystemCall(int result, char const *call, char const *function, char const *file, int line) {
STATIC_DEFINE_LOG("checkSystemCall.log");
if (result < 0)
LOG("Error in function %s at %s (file %s, line %d)\n", function, call, file, line);
return result;
}