1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-04 16:24:16 +01:00
HLMetaModOfficial/sourcehook/test/testbail.h
Scott Ehlert 45bb183759 The most incredibly pointless commit ever
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40346
2007-03-02 02:43:22 +00:00

40 lines
797 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);
}