用宏定义求结构体中某一个成员的偏移量

来源:互联网 发布:java游戏鬼吹灯安卓版 编辑:程序博客网 时间:2024/04/20 17:01
#define FIND(struct ,a )        (unsigned int)&(( (struct *)0)->a)
原创粉丝点击