Fixed tags for mmsource-central
mmsource-1.00-RC1 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:41:34 2006 UTC
mmsource-1.00-RC2 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:35:20 2006 UTC
mmsource-1.00 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:30:40 2006 UTC
mmsource-1.1 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:25:09 2006 UTC
mmsource-1.1.1 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:22:23 2006 UTC
mmsource-1.1.2 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:14:00 2006 UTC
mmsource-1.2 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:10:47 2006 UTC
mmsource-1.2.1 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 08:01:35 2006 UTC
mmsource-1.2.2 - Not tagged originally, but eventually done by Scott Ehlert <
[email protected]> on Wed Jul 19 07:57:26 2006 UTC
mmsource-1.2.3 - Not tagged originally, but eventually done by David Anderson <
[email protected]> on Wed Jul 12 17:33:59 2006 UTC
mmsource-1.3 - Originally tagged by Scott Ehlert <
[email protected]> on Thu Aug 17 03:19:55 2006 UTC
mmsource-1.3a - Originally tagged by Scott Ehlert <
[email protected]> on Wed Sep 6 07:17:37 2006 UTC
mmsource-1.3d - Originally tagged by Scott Ehlert <
[email protected]> on Fri Feb 2 05:30:56 2007 UTC
mmsource-1.4 - Originally tagged by Scott Ehlert <
[email protected]> on Sat Apr 7 05:00:28 2007 UTC
mmsource-1.6.0 - Originally tagged by David Anderson <
[email protected]> on Mon Feb 18 23:31:29 2008 UTC
mmsource-1.6.1 - Originally tagged by David Anderson <
[email protected]> on Mon Feb 25 17:15:44 2008 UTC
mmsource-1.6.2 - Originally tagged by David Anderson <
[email protected]> on Sat Jul 26 05:04:35 2008 UTC
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_PIBUILDER_H__
12 #define __SOURCEHOOK_PIBUILDER_H__
14 #include "sourcehook.h"
15 #include "sh_vector.h"
19 // Helper class: protocol information builder
20 class CProtoInfoBuilder
23 CVector<PassInfo> m_Params;
24 CVector<PassInfo::V2Info> m_Params2;
26 CProtoInfoBuilder(int cc)
28 memset(reinterpret_cast<void*>(&m_PI), 0, sizeof(ProtoInfo));
33 PassInfo::V2Info dummy2;
34 memset(reinterpret_cast<void*>(&dummy), 0, sizeof(PassInfo));
35 memset(reinterpret_cast<void*>(&dummy2), 0, sizeof(PassInfo::V2Info));
37 dummy.size = 1; // Version1
39 m_Params.push_back(dummy);
40 m_Params2.push_back(dummy2);
43 void SetReturnType(size_t size, PassInfo::PassType type, int flags,
44 void *pNormalCtor, void *pCopyCtor, void *pDtor, void *pAssignOperator)
47 flags |= PassInfo::PassFlag_OCtor;
50 flags |= PassInfo::PassFlag_CCtor;
53 flags |= PassInfo::PassFlag_ODtor;
56 flags |= PassInfo::PassFlag_AssignOp;
58 m_PI.retPassInfo.size = size;
59 m_PI.retPassInfo.type = type;
60 m_PI.retPassInfo.flags = flags;
61 m_PI.retPassInfo2.pNormalCtor = pNormalCtor;
62 m_PI.retPassInfo2.pCopyCtor = pCopyCtor;
63 m_PI.retPassInfo2.pDtor = pDtor;
64 m_PI.retPassInfo2.pAssignOperator = pAssignOperator;
67 void AddParam(size_t size, PassInfo::PassType type, int flags,
68 void *pNormalCtor, void *pCopyCtor, void *pDtor, void *pAssignOperator)
74 flags |= PassInfo::PassFlag_OCtor;
77 flags |= PassInfo::PassFlag_CCtor;
80 flags |= PassInfo::PassFlag_ODtor;
83 flags |= PassInfo::PassFlag_AssignOp;
89 pi2.pNormalCtor = pNormalCtor;
90 pi2.pCopyCtor = pCopyCtor;
92 pi2.pAssignOperator = pAssignOperator;
94 m_Params.push_back(pi);
95 m_Params2.push_back(pi2);
101 m_PI.paramsPassInfo = &(m_Params[0]);
102 m_PI.paramsPassInfo2 = &(m_Params2[0]);