2005-05-27 23:39:30 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
// Shared data for testbail
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "testevents.h"
|
|
|
|
|
2005-12-24 00:00:55 +01:00
|
|
|
namespace N_TestBail
|
2005-05-27 23:39:30 +02:00
|
|
|
{
|
2005-12-24 00:00:55 +01:00
|
|
|
extern StateList g_States;
|
|
|
|
extern SourceHook::ISourceHook *g_SHPtr;
|
|
|
|
|
2005-12-23 12:58:11 +01:00
|
|
|
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);
|
2005-05-27 23:39:30 +02:00
|
|
|
|
|
|
|
class IGaben
|
|
|
|
{
|
|
|
|
public:
|
2005-12-23 12:58:11 +01:00
|
|
|
virtual int EatYams(int a)
|
2005-10-03 19:20:22 +02:00
|
|
|
{
|
2005-12-23 12:58:11 +01:00
|
|
|
ADD_STATE(State_EatYams_Called(a));
|
|
|
|
return 5;
|
2005-10-03 19:20:22 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2005-12-24 00:00:55 +01:00
|
|
|
extern IGaben *g_Gabgab;
|
2005-05-27 23:39:30 +02:00
|
|
|
|
2005-12-24 00:00:55 +01:00
|
|
|
bool TestBail2(std::string &error);
|
2005-05-27 23:39:30 +02:00
|
|
|
}
|
|
|
|
|
2005-12-24 00:00:55 +01:00
|
|
|
using namespace N_TestBail;
|
|
|
|
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
SourceHook::Plugin g_PLID;
|
|
|
|
SH_DECL_HOOK1(IGaben, EatYams, SH_NOATTRIB, 0, int, int);
|
2005-12-24 00:15:18 +01:00
|
|
|
}
|