#ifndef _MAIN_H_ #define _MAIN_H_ #ifdef __cplusplus extern "C" { #endif #define DEVICE_NAME "xxx" void user_main(void); #ifdef __cplusplus } #endif #endif /*_MAIN_H_*/
关于extern “C”的使用例子
最新推荐文章于 2024-09-08 20:29:34 发布
#ifndef _MAIN_H_ #define _MAIN_H_ #ifdef __cplusplus extern "C" { #endif #define DEVICE_NAME "xxx" void user_main(void); #ifdef __cplusplus } #endif #endif /*_MAIN_H_*/