摘要:
1,防止一个头文件被重复包含#ifndef BODYDEF_H#define BODYDEF_H //头文件内容#endif2,得到指定地址上的一个字节或字#define MEM_B( x ) ( *( (byte *) (x) ) )#define MEM_W( x ) ( *( (word *) (x) ) )3,得到一个field在结构体(struct)中的偏移量#define FPOS( type, field ) ( (dword) &(( type *) 0)-> field )4,得到一个结构体中field所占用的字节数#define FSIZ( type, fie 阅读全文
posted @ 2013-04-07 21:58
leaving
阅读(184)
评论(0)
推荐(0)
浙公网安备 33010602011771号