| 85 | } |
| 86 | |
| 87 | void CatchOpenCvErrs(void) // makes CV_Assert work with LastErr and stasm_lasterr |
| 88 | { |
| 89 | err_g[0] = 0; |
| 90 | cv::ErrorCallback prev = cv::redirectError(CvErrorCallbackForStasm); |
| 91 | if (istack_g < NSIZE(stack_g)) |
| 92 | stack_g[istack_g++] = prev; |
| 93 | else // should never get here (CatchErr regions nested too deeply) |
| 94 | printf("\nCallback stack overpush\n"); |
| 95 | } |
| 96 | |
| 97 | void UncatchOpenCvErrs(void) // restore handler that was active before CatchOpenCvErrs |
| 98 | { |
no test coverage detected