2005-05-27 21:39:30 +00:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
// Shared data for testbail
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "sourcehook_impl.h"
|
|
|
|
#include "testevents.h"
|
|
|
|
#include <stdarg.h>
|
2005-08-12 17:33:31 +00:00
|
|
|
#include <list>
|
|
|
|
#include <algorithm>
|
2005-05-27 21:39:30 +00:00
|
|
|
|
|
|
|
void ___TestBail2();
|
|
|
|
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
StateList g_States;
|
|
|
|
SourceHook::ISourceHook *g_SHPtr;
|
|
|
|
SourceHook::Plugin g_PLID;
|
|
|
|
|
|
|
|
MAKE_STATE(State_EatYams_Called);
|
|
|
|
MAKE_STATE(State_EatYams_Handler_Called);
|
|
|
|
|
|
|
|
|
|
|
|
class IGaben
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void EatYams()
|
|
|
|
{
|
|
|
|
ADD_STATE(State_EatYams_Called);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
SH_DECL_HOOK0_void(IGaben, EatYams, SH_NOATTRIB, 0);
|
|
|
|
|
|
|
|
void EatYams0_Handler()
|
|
|
|
{
|
|
|
|
ADD_STATE(State_EatYams_Handler_Called);
|
|
|
|
}
|
|
|
|
|
|
|
|
IGaben *g_Gabgab;
|
|
|
|
}
|
|
|
|
|
2005-09-23 20:14:10 +00:00
|
|
|
extern void *___testbail_gabgab;
|