mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-05 00:52:18 +01:00
24 lines
436 B
C++
24 lines
436 B
C++
// 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();
|
|
}
|