Paul Chitescu paulc@voip.null.ro writes:
+/* Macro to get the SampleGrabber This pointer from interface pointer */ +#define GET_THIS(ptr,iface) ((SG_Impl *)((char *)(ptr) - FIELD_OFFSET(SG_Impl,iface ## _Vtbl)))
Please define an inline function for that sort of thing. Look at shelllink.c for examples.