mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 03:15:38 -05:00
Move getFieldIndexForClass outside of header
This commit is contained in:
parent
51109919f9
commit
eadb1b14bd
1 changed files with 2 additions and 5 deletions
|
@ -47,11 +47,8 @@ namespace geode::modifier {
|
||||||
// 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;
|
||||||
static inline std::unordered_map<size_t, size_t> nextIndex;
|
|
||||||
|
|
||||||
static size_t getFieldIndexForClass(size_t hash) {
|
GEODE_DLL static size_t getFieldIndexForClass(size_t hash);
|
||||||
return nextIndex[hash]++;
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void fieldConstructor(void* offsetField) {
|
static void fieldConstructor(void* offsetField) {
|
||||||
|
|
Loading…
Reference in a new issue