关于define语句的一个问题
#define CVAPI(rettype) CV_EXTERN_C CV_EXPORTS rettype CV_CDECL
Quote: 引用:将CVAPI(rettype)替换为CV_EXTERN_C CV_EXPORTS rettype CV_CDECL像你上边的例子,就会展开为CV_EXTERN_C CV_EXPORTS void CV_CDECL cvCircle( CvArr* img, CvPoint center, int radius, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0));有点懂了,rettype是不是就是函数类型?
将CVAPI(rettype)替换为CV_EXTERN_C CV_EXPORTS rettype CV_CDECL像你上边的例子,就会展开为CV_EXTERN_C CV_EXPORTS void CV_CDECL cvCircle( CvArr* img, CvPoint center, int radius, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0));
CVAPI(rettype)
CV_EXTERN_C CV_EXPORTS rettype CV_CDECL
CV_EXTERN_C CV_EXPORTS void CV_CDECL cvCircle( CvArr* img, CvPoint center, int radius, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0));