C/C++ 定义接口文件格式

#ifndef _XXX_H_
#define _XXX_H_


#ifdef __cplusplus
extern "C" {
#endif

// Interface
void PrintHelloWorld();


#ifdef __cplusplus
}
#endif



#endif // _XXX_H_

  

原文地址:https://www.cnblogs.com/sylar-liang/p/4792293.html