__BEGIN_DECLS、__END_DECLS说明

这个其实就是extern c的封装,在C++中使用C的方式编译

#ifdef	__cplusplus
# define __BEGIN_DECLS	extern "C" {
# define __END_DECLS	}
#else
# define __BEGIN_DECLS
# define __END_DECLS
#endif
posted @ 2022-08-02 17:28  findwsm  阅读(113)  评论(0)    收藏  举报