接口的虚函数表
BREW接口获取虚函数表,有两个相关的宏: GET_PVTBL和AEEGETPVTBL,其定义如下:// returns an 'iname'Vtbl *
#define GET_PVTBL(p,iname) ((iname*)(void*)p)->pvt
/* macro for retrieving the vtable from an instance of an interface */
#define AEEGETPVTBL(p,iname) (*((AEEVTBL(iname) **)((void *)p)))
页:
[1]