Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
d855608e
Commit
d855608e
authored
Aug 26, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
instrumentation: fix build on Linux
- enable C++11 - fix macro
parent
10d18a31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
OpenCVCompilerOptions.cmake
cmake/OpenCVCompilerOptions.cmake
+5
-0
private.hpp
modules/core/include/opencv2/core/private.hpp
+4
-4
No files found.
cmake/OpenCVCompilerOptions.cmake
View file @
d855608e
...
...
@@ -233,6 +233,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set
(
OPENCV_EXTRA_CXX_FLAGS
"
${
OPENCV_EXTRA_CXX_FLAGS
}
--coverage"
)
endif
()
if
(
ENABLE_INSTRUMENTATION
)
set
(
OPENCV_EXTRA_CXX_FLAGS
"
${
OPENCV_EXTRA_CXX_FLAGS
}
--std=c++11"
)
set
(
WITH_VTK OFF
)
# There are issues with VTK 6.0
endif
()
set
(
OPENCV_EXTRA_FLAGS_RELEASE
"
${
OPENCV_EXTRA_FLAGS_RELEASE
}
-DNDEBUG"
)
set
(
OPENCV_EXTRA_FLAGS_DEBUG
"
${
OPENCV_EXTRA_FLAGS_DEBUG
}
-O0 -DDEBUG -D_DEBUG"
)
endif
()
...
...
modules/core/include/opencv2/core/private.hpp
View file @
d855608e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment