27 Jul
2005
27 Jul
'05
5:40 a.m.
"Dmitry Timoshkov" <dmitry(a)baikal.ru> writes:
"James Hawkins" <truiken(a)gmail.com> wrote:
+#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
IMO using 'const' before the type looks more natural. Also adding 'const' to all type conversions wouldn't hurt:
const impl* This = (const impl*)((const char*)(iface) - offsetof(impl,field))
That means something completely different. 'const impl* This' and 'impl* const This' are not the same thing. -- Alexandre Julliard julliard(a)winehq.org