摘要: 转自: https://code.google.com/p/effective-c/wiki/EffectiveC条款1:避免把#include指令放在extern "C"里面不知道在你工作过的系统里,能够看到多少类似下面的代码:#ifndef __MY_HANDLE_H__#define __MY_HANDLE_H__#ifdef __cplusplusextern"C"{#endif#include#includetypedefvoid* my_handle_t;my_handle_t create_handle(constchar* name);r 阅读全文
posted @ 2013-04-27 22:39 shines77 阅读(611) 评论(0) 推荐(1) 编辑
摘要: 转自: http://effective-c.googlecode.com/svn-history/r67/wiki/EffectiveC.wiki==条款1:避免把#include指令放在extern "C"里面== 不知道在你工作过的系统里,能够看到多少类似下面的代码:{{{#ifndef __MY_HANDLE_H__#define __MY_HANDLE_H__}}}{{{#ifdef __cplusplusextern "C" {#endif}}}{{{#include #include }}}{{{typedef void* my_handl 阅读全文
posted @ 2013-04-27 22:33 shines77 阅读(613) 评论(0) 推荐(0) 编辑