One bugfix, addition of META_RETURN_(VALUE_)NEWPARAMS (implemented using recalls), tests now support compiling against an older version of sourcehook.h (through the sourcehook_test.h file) while main.cpp which now also acts as a CSourceHookImpl factory compiles against the new version.
1 //////////////////////////////////////////////////////////////////////////
2 // Shared data for testbail
5 #include "testevents.h"
7 bool ___TestBail2(std::string &error);
12 SourceHook::ISourceHook *g_SHPtr;
13 SourceHook::Plugin g_PLID;
15 MAKE_STATE_1(State_EatYams_Called, int);
16 MAKE_STATE_1(State_EatYams_Handler1_Called, int);
17 MAKE_STATE_1(State_EatYams_Handler2_Called, int);
18 MAKE_STATE_1(State_EatYams_Handler3_Called, int);
19 MAKE_STATE_1(State_EatYams_Return, int);
24 virtual int EatYams(int a)
26 ADD_STATE(State_EatYams_Called(a));
31 SH_DECL_HOOK1(IGaben, EatYams, SH_NOATTRIB, 0, int, int);
36 extern void *___testbail_gabgab;
37 extern SourceHook::ISourceHook *___testbail_shptr;
38 extern int ___testbail_EatYams_Handler2(int a);
39 extern int ___testbail_EatYams_Handler3(int a);