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

@@ -25,4 +25,13 @@ private:
typedef MxListCursorChild<MxDSAction> MxDSActionListCursor;
// OFFSET: LEGO1 0x100c9d20 TEMPLATE
// MxListParent<MxDSAction>::Destroy
// OFFSET: LEGO1 0x100c9cd0 TEMPLATE
// MxListParent<MxDSAction>::~MxListParent<MxDSAction>
// OFFSET: LEGO1 0x100c9d30 TEMPLATE
// MxList<MxDSAction>::~MxList<MxDSAction>
#endif // MXDSACTIONLIST_H

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();

View File

@@ -182,4 +182,4 @@ MxResult MxNotificationManager::Send(MxCore *p_listener, MxParam *p_param)
}
return FAILURE;
}
}

View File

@@ -26,4 +26,13 @@ public:
typedef MxListCursorChildChild<MxPresenter> MxPresenterListCursor;
// OFFSET: LEGO1 0x1001cd30 TEMPLATE
// MxListParent<MxPresenter>::Destroy
// OFFSET: LEGO1 0x1001cdd0 TEMPLATE
// MxListParent<MxPresenter>::~MxListParent<MxPresenter>
// OFFSET: LEGO1 0x1001ce20 TEMPLATE
// MxList<MxPresenter>::~MxList<MxPresenter>
#endif // MXPRESENTERLIST_H