sourcehook/test/testbail2.cpp
author Pavol Marko <pavolmarko@gmail.com>
Fri May 27 21:39:30 2005 +0000 (2005-05-27)
changeset 75 8d8efeb2ecc8
child 111 aec58c99dafc
permissions -rw-r--r--
Added TestBail
     1 // TESTBAIL
     2 //  Different compilation unit
     3 
     4 #include "testbail.h"
     5 
     6 void ___TestBail2()
     7 {
     8 	SourceHook::CSourceHookImpl g_SHImpl;
     9 	g_SHPtr = &g_SHImpl;
    10 	g_PLID = 2;
    11 
    12 	g_Gabgab = (IGaben*)___testbail_gabgab;
    13 
    14 	g_Gabgab->EatYams();
    15 
    16 	SH_ADD_HOOK_STATICFUNC(IGaben, EatYams, g_Gabgab, EatYams0_Handler, false);
    17 
    18 	g_Gabgab->EatYams();
    19 	
    20 	SH_REMOVE_HOOK_STATICFUNC(IGaben, EatYams, g_Gabgab, EatYams0_Handler, false);
    21 
    22 	g_Gabgab->EatYams();
    23 }