Removed cruft from Makefile.
1 /* ======== SourceHook ========
2 * Copyright (C) 2004-2008 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;
30 bool operator == (const IntPassInfo &other) const
32 return size == other.size
34 && flags == other.flags
35 && pNormalCtor == other.pNormalCtor
36 && pDtor == other.pDtor
37 && pAssignOperator == other.pAssignOperator;
40 bool operator != (const IntPassInfo &other) const
42 return !(*this == other);
48 int m_Version; // -1 = invalid
50 IntPassInfo m_RetPassInfo;
51 CVector<IntPassInfo> m_ParamsPassInfo;
54 void Fill(const ProtoInfo *pProto);
56 // For old sourcehook.h: flags 0 -> assume ByVal
57 static unsigned int GetRealFlags(const PassInfo &info)
59 return (info.flags == 0) ? PassInfo::PassFlag_ByVal : info.flags;
63 CProto() : m_Version(-1)
67 CProto(const ProtoInfo *pProto)
72 CProto(const CProto &other) : m_Version(other.m_Version), m_NumOfParams(other.m_NumOfParams),
73 m_RetPassInfo(other.m_RetPassInfo), m_ParamsPassInfo(other.m_ParamsPassInfo),
74 m_Convention(other.m_Convention)
83 void operator = (const ProtoInfo *pProto)
88 bool operator == (const CProto &other) const;
90 bool ExactlyEqual(const CProto &other) const;
92 int GetVersion() const
97 int GetNumOfParams() const
102 const IntPassInfo & GetParam(int i) const
104 return m_ParamsPassInfo[i];
107 IntPassInfo & GetParam(int i)
109 return m_ParamsPassInfo[i];
112 const IntPassInfo & GetRet() const
114 return m_RetPassInfo;
117 IntPassInfo & GetRet()
119 return m_RetPassInfo;
122 int GetConvention() const
127 static size_t GetRealSize(const IntPassInfo &info)
129 if (info.flags & PassInfo::PassFlag_ByRef)
131 return sizeof(void*);