sourcehook/sourcehook.cpp
branchhookman_autogen
changeset 455 deec66cea8cc
parent 420 9c0613cb6f50
child 523 6f1630519b81
     1.1 --- a/sourcehook/sourcehook.cpp	Fri Nov 09 21:14:37 2007 +0000
     1.2 +++ b/sourcehook/sourcehook.cpp	Sat Nov 10 16:10:55 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