Its a copy of the MONGO_CURSOR_CHECK_DEAD macro.
Cannot use that macro here as the variable name is different, and the return value is different.