mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-12-03 15:24:15 +01:00
1c1b3953a3
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4076
23 lines
435 B
C++
23 lines
435 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();
|
|
} |