[MPlayer-dev-eng] [PATCH] encapsulating #define arguments

Kim Minh Kaplan kmkaplan at selfoffice.com
Mon Jan 13 18:23:25 CET 2003


Arpi writes:

>>  #define M_ST_OFF(struct_type, member)    \
>> -    ((void*) &((struct_type*) 0)->member)

Mmm, this looks awfully close to the ANSI macro offsetof that is
defined in stddef.h

Kim Minh.


More information about the MPlayer-dev-eng mailing list