Skip to content

Commit

Permalink
Undo include order shenanigans for Il2CppObject/System.Object
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBrumbler committed Dec 16, 2023
1 parent 804c0de commit d621fcb
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions shared/utils/typedefs-object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,6 @@

#include "type-concepts.hpp"

#ifdef HAS_CODEGEN

#ifdef USE_CODEGEN_FIELDS
#define _HAD_CODEGEN_FIELDS
#else
#define USE_CODEGEN_FIELDS
#endif

#include "System/zzzz__Object_def.hpp"
#ifndef _HAD_CODEGEN_FIELDS
#undef USE_CODEGEN_FIELDS
#endif

#undef _HAD_CODEGEN_FIELDS

typedef Il2CppClass Il2CppVTable;
struct MonitorData;
struct Il2CppObject : public System::Object {
union {
Il2CppClass *klass;
Il2CppVTable *vtable;
};
MonitorData *monitor;
};
#include "System/zzzz__Object_impl.hpp"
#else
typedef Il2CppClass Il2CppVTable;
struct MonitorData;
typedef struct Il2CppObject
Expand All @@ -39,5 +13,5 @@ typedef struct Il2CppObject
};
MonitorData *monitor;
} Il2CppObject;
#endif

MARK_REF_PTR_T(Il2CppObject);

0 comments on commit d621fcb

Please sign in to comment.