#ifndef H_SOMECODE
#define H_SOMECODE
#ifdef __cplusplus
extern "C" {
#endif
void foo(void);
#ifdef __cplusplus
}
#endif
#endif /* H_SOMECODE */
[1] 用法
[2]深入講解Compiler做的事,還有更新和有趣的文章
[1] https://isocpp.org/wiki/faq/mixing-c-and-cpp
[2]http://mqjing.blogspot.tw/2008/10/c-c-c-function.html
沒有留言:
張貼留言