Sometimes a local variable is used for the sole purpose of checking it in an assert(), like so -
int Result = Func(); assert( Result == 1 );
If this code is inside a function, then act on and return the result:
bool bigPicture() { //Check the results bool success = 1 != Func(); assert(success == NO, "Bad times"); //Success is given, so... actOnIt(); //and return success; }