]>
git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/auxkc-vtable-patching-arm64e/foo.cpp
4 OSDefineMetaClassAndStructors( Foo
, OSObject
)
6 // Redefine this just so that we can write tests
7 #undef OSMetaClassDefineReservedUnused
8 #define OSMetaClassDefineReservedUnused(className, index) \
9 void className ::_RESERVED ## className ## index () \
10 { gMetaClass.reservedCalled(index); }
12 // Index 0 has been replaced with a method
13 OSMetaClassDefineReservedUsed(Foo
, 0)
14 OSMetaClassDefineReservedUnused( Foo
, 1 )
15 OSMetaClassDefineReservedUnused( Foo
, 2 )
16 OSMetaClassDefineReservedUnused( Foo
, 3 )
28 return foo
->foo() + foo
->fooUsed0();