I understand that there is something called thunk adjustment for this 
pointer required in mulitple inheritance case .. but i donot exactly follow 
the implementation for example ..

a regular vtable call can be

XPTC_InvokeMethodByIndex( nsISupport *that, int methodIndex)
{
...
// assuming Vtable starts at *that ..
func = *(int*)that  + (methodIndex *4);
invoke_ copy_to_stack();
// then call func()
asm("jmp %1" :: func);
}

Now this fails for thnuked calls ..
Basically what is the 'C' equivlaent to access the vtable for a thunk call ?


_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to