Move getFieldIndex outside class

This commit is contained in:
alk 2022-12-03 17:00:39 +03:00 committed by GitHub
parent 780aaf33f8
commit 7cc5fb1405
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,14 +41,14 @@ namespace geode::modifier {
return node->getFieldContainer(); return node->getFieldContainer();
} }
}; };
GEODE_DLL size_t getFieldIndexForClass(size_t hash);
template <class Parent, class Base> template <class Parent, class Base>
class FieldIntermediate { class FieldIntermediate {
// Padding used for guaranteeing any member of parents // Padding used for guaranteeing any member of parents
// will be in between sizeof(Intermediate) and sizeof(Parent) // will be in between sizeof(Intermediate) and sizeof(Parent)
uintptr_t m_padding; uintptr_t m_padding;
GEODE_DLL static size_t getFieldIndexForClass(size_t hash);
public: public:
static void fieldConstructor(void* offsetField) { static void fieldConstructor(void* offsetField) {