reccmp: template compare annotations (#88)

* reccmp: Add ability to compare template instantiations

* Add example of template instantiation comparison.

* merge

* Add template compare annotations for MxList instances

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
pewpew
2023-09-29 13:40:46 -05:00
committed by GitHub
parent f7743c51fb
commit b77cd067d3
5 changed files with 57 additions and 23 deletions

View File

@@ -31,15 +31,11 @@ public:
m_count = 0;
m_customDestructor = Destroy;
}
// OFFSET: LEGO1 0x1001cdd0
virtual ~MxListParent() {}
// OFFSET: LEGO1 0x1001cd30
static void Destroy(T *) {};
// OFFSET: LEGO1 0x1001cd20
virtual MxS8 Compare(T *, T *) = 0;
static void Destroy(T *) {};
protected:
MxU32 m_count; // +0x8
void (*m_customDestructor)(T *); // +0xc
@@ -114,7 +110,6 @@ public:
};
template <class T>
// OFFSET: LEGO1 0x1001ce20
MxList<T>::~MxList()
{
DeleteAll();