Enabled CV_Assert and such to print the function name with Visual C++.
Also, I made a separate macro for the current function name, which helps simplify a lot of code that uses it.
This commit is contained in:
@@ -415,13 +415,8 @@ cvCreateMap( int flags, int header_size, int elem_size,
|
||||
return map;
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define CV_PARSE_ERROR( errmsg ) \
|
||||
icvParseError( fs, __func__, (errmsg), __FILE__, __LINE__ )
|
||||
#else
|
||||
#define CV_PARSE_ERROR( errmsg ) \
|
||||
icvParseError( fs, "", (errmsg), __FILE__, __LINE__ )
|
||||
#endif
|
||||
icvParseError( fs, CV_Func, (errmsg), __FILE__, __LINE__ )
|
||||
|
||||
static void
|
||||
icvParseError( CvFileStorage* fs, const char* func_name,
|
||||
|
Reference in New Issue
Block a user