1.1 --- a/sourcehook/sourcehook.cpp Sat Nov 24 06:11:23 2007 +0000
1.2 +++ b/sourcehook/sourcehook.cpp Mon Nov 26 14:03:25 2007 +0000
1.3 @@ -151,6 +151,25 @@
1.4
1.5 return true;
1.6 }
1.7 +
1.8 + bool CProto::ExactlyEqual(const CProto &other) const
1.9 + {
1.10 + if (m_Version != other.m_Version ||
1.11 + m_NumOfParams != other.m_NumOfParams ||
1.12 + m_Convention != other.m_Convention ||
1.13 + GetRet() != other.GetRet())
1.14 + {
1.15 + return false;
1.16 + }
1.17 +
1.18 + for (int i = 0; i < m_NumOfParams; ++i)
1.19 + {
1.20 + if(GetParam(i) != other.GetParam(i))
1.21 + return false;
1.22 + }
1.23 +
1.24 + return true;
1.25 + }
1.26
1.27 //////////////////////////////////////////////////////////////////////////
1.28 // CHookManager