33,311
社区成员
发帖
与我相关
我的任务
分享
#define CVAPI(rettype) CV_EXTERN_C CV_EXPORTS rettype CV_CDECL
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(void) 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));
它是用在这里的