Skip to content

Commit 6dba173

Browse files
committed
Merge pull request opencv#17567 from dev-tronifier:new_branch
2 parents daa88c6 + 9b727fa commit 6dba173

File tree

1 file changed

+14
-2
lines changed
  • modules/core/include/opencv2/core

1 file changed

+14
-2
lines changed

modules/core/include/opencv2/core/cvdef.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,24 @@ namespace cv { namespace debug_build_guard { } using namespace debug_build_guard
8686
#define __CV_VA_NUM_ARGS_HELPER(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, N, ...) N
8787
#define __CV_VA_NUM_ARGS(...) __CV_VA_NUM_ARGS_HELPER(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
8888

89-
#if defined __GNUC__
89+
#ifdef CV_Func
90+
// keep current value (through OpenCV port file)
91+
#elif defined __GNUC__ || (defined (__cpluscplus) && (__cpluscplus >= 201103))
92+
#define CV_Func __func__
93+
#elif defined __clang__ && (__clang_minor__ * 100 + __clang_major >= 305)
94+
#define CV_Func __func__
95+
#elif defined(__STDC_VERSION__) && (__STDC_VERSION >= 199901)
9096
#define CV_Func __func__
9197
#elif defined _MSC_VER
9298
#define CV_Func __FUNCTION__
99+
#elif defined(__INTEL_COMPILER) && (_INTEL_COMPILER >= 600)
100+
#define CV_Func __FUNCTION__
101+
#elif defined __IBMCPP__ && __IBMCPP__ >=500
102+
#define CV_Func __FUNCTION__
103+
#elif defined __BORLAND__ && (__BORLANDC__ >= 0x550)
104+
#define CV_Func __FUNC__
93105
#else
94-
#define CV_Func ""
106+
#define CV_Func "<unknown>"
95107
#endif
96108

97109
//! @cond IGNORED

0 commit comments

Comments
 (0)