1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-02 14:24:16 +01:00
HLMetaModOfficial/sourcehook/test/testbail.h
Pavol Marko 1a1366323e linux/gcc/32bit compatibility
----------------------------------------------------------------------

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40165
2005-12-23 23:15:18 +00:00

41 lines
798 B
C++

//////////////////////////////////////////////////////////////////////////
// Shared data for testbail
#include <string>
#include "testevents.h"
namespace N_TestBail
{
extern StateList g_States;
extern SourceHook::ISourceHook *g_SHPtr;
MAKE_STATE_1(State_EatYams_Called, int);
MAKE_STATE_1(State_EatYams_Handler1_Called, int);
MAKE_STATE_1(State_EatYams_Handler2_Called, int);
MAKE_STATE_1(State_EatYams_Handler3_Called, int);
MAKE_STATE_1(State_EatYams_Return, int);
class IGaben
{
public:
virtual int EatYams(int a)
{
ADD_STATE(State_EatYams_Called(a));
return 5;
}
};
extern IGaben *g_Gabgab;
bool TestBail2(std::string &error);
}
using namespace N_TestBail;
namespace
{
SourceHook::Plugin g_PLID;
SH_DECL_HOOK1(IGaben, EatYams, SH_NOATTRIB, 0, int, int);
}