mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -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
|
||||
// will be in between sizeof(Intermediate) and sizeof(Parent)
|
||||
uintptr_t m_padding;
|
||||
static inline std::unordered_map<size_t, size_t> nextIndex;
|
||||
|
||||
static size_t getFieldIndexForClass(size_t hash) {
|
||||
return nextIndex[hash]++;
|
||||
}
|
||||
|
||||
GEODE_DLL static size_t getFieldIndexForClass(size_t hash);
|
||||
|
||||
public:
|
||||
static void fieldConstructor(void* offsetField) {
|
||||
|
|
Loading…
Reference in a new issue