Lines Matching refs:rc
257 #define CHKLOG(rc, function) do { rc = (function); if (rc != ESR_SUCCESS) { PLogError("%s in %s:%d", ESR_rc2str(rc), __FILE__, __LINE__); goto CLEANUP; } } while (0)
262 * @param rc Used to store the function return value
266 #define PLOG_CHKRC_ARGS(rc, function, args) do { if((rc = (function args)) != ESR_SUCCESS) { PLogError(ESR_rc2str(rc)); return rc; } } while (0)
272 #define PLOG_CHKRC(rc, function) do { rc = (function); if (rc != ESR_SUCCESS) { PLogError(rc); return rc; } } while (0)
297 ESR_ReturnCode rc; \
299 rc = PStackTraceGetFunctionName(text, &len); \
300 if (rc==ESR_SUCCESS) \
302 else if (rc!=ESR_NOT_SUPPORTED) \
303 pfprintf(PSTDERR, L("[%s:%d] PStackTraceGetValue failed with %s\n"), __FILE__, __LINE__, ESR_rc2str(rc)); \
306 #define PLOG_DBG_API_EXIT(rc) \
316 PLogMessage(L("%s returned %s"), text, ESR_rc2str(rc)); \
317 else if (rc!=ESR_NOT_SUPPORTED) \
329 #define PLOG_DBG_API_EXIT(rc) ((void) 0)