#define OPENCV_ERROR(status,func,context) \
cvError((status),(func),(context),__FILE__,__LINE__)
-#define OPENCV_ERRCHK(func,context) \
-{if (cvGetErrStatus() >= 0) \
-{OPENCV_ERROR(CV_StsBackTrace,(func),(context));}}
-
#define OPENCV_ASSERT(expr,func,context) \
{if (! (expr)) \
{OPENCV_ERROR(CV_StsInternal,(func),(context));}}
-#define OPENCV_RSTERR() (cvSetErrStatus(CV_StsOk))
-
#define OPENCV_CALL( Func ) \
{ \
Func; \
__CV_EXIT__; \
}
-/* Simplified form of CV_ERROR */
-#define CV_ERROR_FROM_CODE( code ) \
- CV_ERROR( code, "" )
-
/*
CV_CHECK macro checks error status after CV (or IPL)
function call. If error detected, control will be transferred to the exit