sourcehook/test/testbail2.cpp
changeset 75 8d8efeb2ecc8
child 111 aec58c99dafc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sourcehook/test/testbail2.cpp	Fri May 27 21:39:30 2005 +0000
     1.3 @@ -0,0 +1,23 @@
     1.4 +// TESTBAIL
     1.5 +//  Different compilation unit
     1.6 +
     1.7 +#include "testbail.h"
     1.8 +
     1.9 +void ___TestBail2()
    1.10 +{
    1.11 +	SourceHook::CSourceHookImpl g_SHImpl;
    1.12 +	g_SHPtr = &g_SHImpl;
    1.13 +	g_PLID = 2;
    1.14 +
    1.15 +	g_Gabgab = (IGaben*)___testbail_gabgab;
    1.16 +
    1.17 +	g_Gabgab->EatYams();
    1.18 +
    1.19 +	SH_ADD_HOOK_STATICFUNC(IGaben, EatYams, g_Gabgab, EatYams0_Handler, false);
    1.20 +
    1.21 +	g_Gabgab->EatYams();
    1.22 +	
    1.23 +	SH_REMOVE_HOOK_STATICFUNC(IGaben, EatYams, g_Gabgab, EatYams0_Handler, false);
    1.24 +
    1.25 +	g_Gabgab->EatYams();
    1.26 +}
    1.27 \ No newline at end of file