看了qualcomm的 interface, 决定把它抄下来。 主要还是方便日后查找。
1. define the structure of virtual function table
#ifndef __INTERFACE_H__
#define __INTERFACE_H__
//定义一个虚函数表名称
#define VTBL(iname) iname##Vtbl
//定义虚函数表结构
#define QINTERFACE(iname) struct _##iname{\
struct VTBL(iname) *pvt;\
};\
struct VTBL(iname)
//定义一个虚函数表变量
#define DECLARE_VTBL(iname) iname vt##iname;
//获取虚函数阅读全文>
发表于 @ 2009年03月15日 15:21:00 | 评论( loading... ) | 举报| 收藏
10年跳槽经验总结 高级人才不用找工作 阅读全文>
发表于 @ 2007年12月19日 17:47:00 | 评论( loading... ) | 举报| 收藏
goto , 使用, longjmp, 跳转, 标准,规范,高质量c/c++,林锐阅读全文>
发表于 @ 2007年12月08日 20:13:00 | 评论( loading... ) | 举报| 收藏
b,t, binary,text foen阅读全文>
发表于 @ 2007年09月14日 14:38:00 | 评论( loading... ) | 举报| 收藏
Visual Leak Detector阅读全文>
发表于 @ 2007年09月14日 10:30:00 | 评论( loading... ) | 举报| 收藏
UUENCODE 编码 解码 MIME MAIL SMTP UUDECODE阅读全文>
发表于 @ 2007年09月03日 09:30:00 | 评论( loading... ) | 举报| 收藏