diff -r a88d5ff76c28 -r 8d8efeb2ecc8 sourcehook/test/testbail2.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sourcehook/test/testbail2.cpp Fri May 27 21:39:30 2005 +0000 @@ -0,0 +1,23 @@ +// TESTBAIL +// Different compilation unit + +#include "testbail.h" + +void ___TestBail2() +{ + SourceHook::CSourceHookImpl g_SHImpl; + g_SHPtr = &g_SHImpl; + g_PLID = 2; + + g_Gabgab = (IGaben*)___testbail_gabgab; + + g_Gabgab->EatYams(); + + SH_ADD_HOOK_STATICFUNC(IGaben, EatYams, g_Gabgab, EatYams0_Handler, false); + + g_Gabgab->EatYams(); + + SH_REMOVE_HOOK_STATICFUNC(IGaben, EatYams, g_Gabgab, EatYams0_Handler, false); + + g_Gabgab->EatYams(); +} \ No newline at end of file