Commit c3f0ee07 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #7675 from filnet:msys2

parents c93fb14d e79f83e5
...@@ -621,7 +621,7 @@ String tempfile( const char* suffix ) ...@@ -621,7 +621,7 @@ String tempfile( const char* suffix )
return fname; return fname;
} }
static CvErrorCallback customErrorCallback = 0; static ErrorCallback customErrorCallback = 0;
static void* customErrorCallbackData = 0; static void* customErrorCallbackData = 0;
static bool breakOnError = false; static bool breakOnError = false;
...@@ -666,13 +666,13 @@ void error(int _code, const String& _err, const char* _func, const char* _file, ...@@ -666,13 +666,13 @@ void error(int _code, const String& _err, const char* _func, const char* _file,
error(cv::Exception(_code, _err, _func, _file, _line)); error(cv::Exception(_code, _err, _func, _file, _line));
} }
CvErrorCallback ErrorCallback
redirectError( CvErrorCallback errCallback, void* userdata, void** prevUserdata) redirectError( ErrorCallback errCallback, void* userdata, void** prevUserdata)
{ {
if( prevUserdata ) if( prevUserdata )
*prevUserdata = customErrorCallbackData; *prevUserdata = customErrorCallbackData;
CvErrorCallback prevCallback = customErrorCallback; ErrorCallback prevCallback = customErrorCallback;
customErrorCallback = errCallback; customErrorCallback = errCallback;
customErrorCallbackData = userdata; customErrorCallbackData = userdata;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment