j******e 发帖数: 64 | 1 【 以下文字转载自 JobHunting 讨论区 】
发信人: justcome (ANewOne), 信区: JobHunting
标 题: 高手看看,这个define是用来干什么的?
发信站: BBS 未名空间站 (Mon Feb 25 14:42:03 2008), 站内
#define X(y, z) ((int) &(((y *) 0)->z)) | c*****g 发帖数: 119 | 2 return the address of the member z in struct/class y
【在 j******e 的大作中提到】 : 【 以下文字转载自 JobHunting 讨论区 】 : 发信人: justcome (ANewOne), 信区: JobHunting : 标 题: 高手看看,这个define是用来干什么的? : 发信站: BBS 未名空间站 (Mon Feb 25 14:42:03 2008), 站内 : #define X(y, z) ((int) &(((y *) 0)->z))
| c*****z 发帖数: 182 | 3 offset?
return the address of the member z in struct/class y
【在 c*****g 的大作中提到】 : return the address of the member z in struct/class y
| c*****g 发帖数: 119 | 4 right, offset for non-static member
【在 c*****z 的大作中提到】 : offset? : : return the address of the member z in struct/class y
|
|