Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

#define RT_UOFFSETOF ( type,
member   )     ( (uintptr_t)&( ((type *)(void *)0)->member) )

Our own special offsetof() variant, returns an unsigned result.

This differs from the usual offsetof() in that it's not relying on builtin compiler stuff and thus can use variables in arrays the structure may contain. This is useful to determine the sizes of structures ending with a variable length field.

offset into the structure of the specified member. unsigned.
type Structure type.
member Member.

Definition at line 956 of file cdefs.h.

Referenced by mmR3HyperInit().

Generated by  Doxygen 1.6.0   Back to index