| 38 | //----------------------------------------------------------------------------- |
| 39 | |
| 40 | static void PossiblyEnterDebugger(void) |
| 41 | { |
| 42 | #if _DEBUG |
| 43 | // requires you to be in a debugger or have set up a just-in-time debugger |
| 44 | printf("\n%s\nDEBUG is true so forcing entry to the debugger\n", err_g); |
| 45 | fflush(stdout); |
| 46 | static volatile int* p = 0; |
| 47 | *p = 99; |
| 48 | #endif // _DEBUG |
| 49 | } |
| 50 | |
| 51 | // This gets called during OpenCV error handling e.g. if a CV_Assert fails. |
| 52 | // Save the error info in our global string err_g. |
no outgoing calls
no test coverage detected