mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
instrumentation: fix build on Linux
- enable C++11 - fix macro
This commit is contained in:
@@ -502,12 +502,12 @@ CV_EXPORTS InstrNode* getCurrentNode();
|
||||
auto status = ((FUN)(__VA_ARGS__));\
|
||||
if(ERROR_COND){\
|
||||
::cv::instr::getCurrentNode()->m_payload.m_funError = true;\
|
||||
CV_INSTRUMENT_MARK_META(IMPL, ##FUN - BadExit);\
|
||||
CV_INSTRUMENT_MARK_META(IMPL, #FUN " - BadExit");\
|
||||
}\
|
||||
return status;\
|
||||
}catch(...){\
|
||||
::cv::instr::getCurrentNode()->m_payload.m_funError = true;\
|
||||
CV_INSTRUMENT_MARK_META(IMPL, ##FUN - BadExit);\
|
||||
CV_INSTRUMENT_MARK_META(IMPL, #FUN " - BadExit");\
|
||||
throw;\
|
||||
}\
|
||||
}else{\
|
||||
@@ -523,7 +523,7 @@ CV_EXPORTS InstrNode* getCurrentNode();
|
||||
(FUN)(__VA_ARGS__);\
|
||||
}catch(...){\
|
||||
::cv::instr::getCurrentNode()->m_payload.m_funError = true;\
|
||||
CV_INSTRUMENT_MARK_META(IMPL, ##FUN - BadExit);\
|
||||
CV_INSTRUMENT_MARK_META(IMPL, #FUN "- BadExit");\
|
||||
throw;\
|
||||
}\
|
||||
}else{\
|
||||
@@ -531,7 +531,7 @@ CV_EXPORTS InstrNode* getCurrentNode();
|
||||
}\
|
||||
}())
|
||||
// Instrumentation information marker
|
||||
#define CV_INSTRUMENT_MARK_META(IMPL, NAME, ...) {::cv::instr::IntrumentationRegion __instr_mark__(#NAME, __FILE__, __LINE__, ::cv::instr::TYPE_MARKER, IMPL);}
|
||||
#define CV_INSTRUMENT_MARK_META(IMPL, NAME, ...) {::cv::instr::IntrumentationRegion __instr_mark__(NAME, __FILE__, __LINE__, ::cv::instr::TYPE_MARKER, IMPL);}
|
||||
|
||||
///// General instrumentation
|
||||
// General OpenCV region instrumentation macro
|
||||
|
||||
Reference in New Issue
Block a user