7.40 __vcall_offsetof_vfunc(D, f)

Returns the offset of the slot in the vtable that holds the pointer to the virtual function, f.

Where D is a class and f is a virtual function defined in D, or a base class of D.

If __vcall_offsetof_vfunc(D, f) is used when f is not a virtual member function it returns an arbitrary value designed to cause an assembly error if used.

Related concepts
7.35 Compiler-supported keywords for calling class member functions in embedded assembler
7.42 Calling a nonvirtual member function
7.43 Calling a virtual member function
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.