Changed license in sourcehook_hookmangen_x86.h (agreed to by BAILOPAN and faluco)
Updated MSVC7 proj file
1 /* ======== SourceHook ========
2 * Copyright (C) 2004-2007 Metamod:Source Development Team
3 * No warranties of any kind
7 * Author(s): Pavol "PM OnoTo" Marko
8 * ============================
11 #ifndef __SOURCEHOOK_IMPL_CPROTO_H__
12 #define __SOURCEHOOK_IMPL_CPROTO_H__
18 // Internal representation
28 void *pAssignOperator;
33 int m_Version; // -1 = invalid
35 IntPassInfo m_RetPassInfo;
36 CVector<IntPassInfo> m_ParamsPassInfo;
39 void Fill(const ProtoInfo *pProto);
41 // For old sourcehook.h: flags 0 -> assume ByVal
42 static unsigned int GetRealFlags(const PassInfo &info)
44 return (info.flags == 0) ? PassInfo::PassFlag_ByVal : info.flags;
48 CProto() : m_Version(-1)
52 CProto(const ProtoInfo *pProto)
57 CProto(const CProto &other) : m_Version(other.m_Version), m_NumOfParams(other.m_NumOfParams),
58 m_RetPassInfo(other.m_RetPassInfo), m_ParamsPassInfo(other.m_ParamsPassInfo),
59 m_Convention(other.m_Convention)
68 void operator = (const ProtoInfo *pProto)
73 bool operator == (const CProto &other) const;
75 int GetVersion() const
80 int GetNumOfParams() const
85 const IntPassInfo & GetParam(int i) const
87 return m_ParamsPassInfo[i];
90 const IntPassInfo & GetRet() const
95 int GetConvention() const
100 static size_t GetRealSize(const IntPassInfo &info)
102 if (info.flags & PassInfo::PassFlag_ByRef)
104 return sizeof(void*);