sourcehook/test/testrecall.cpp
changeset 380 f9e21a2ac558
parent 324 257f0837a885
child 387 093c72464b35
     1.1 --- a/sourcehook/test/testrecall.cpp	Sun Oct 07 03:12:19 2007 +0000
     1.2 +++ b/sourcehook/test/testrecall.cpp	Sun Oct 07 22:10:07 2007 +0000
     1.3 @@ -48,11 +48,6 @@
     1.4  		}
     1.5  	};
     1.6  
     1.7 -	// GCC's optimizer is too good. I had to add this in order to make it execute a virtual table lookup!
     1.8 -	struct Whatever : Test
     1.9 -	{
    1.10 -	};
    1.11 -
    1.12  	void Handler1_Func1(int a)
    1.13  	{
    1.14  		ADD_STATE(State_H1_Func1(a));
    1.15 @@ -124,7 +119,7 @@
    1.16  	GET_SHPTR(g_SHPtr);
    1.17  	g_PLID = 1337;
    1.18  
    1.19 -	Whatever inst;
    1.20 +	Test inst;
    1.21  	Test *ptr = &inst;
    1.22  
    1.23  	SH_ADD_HOOK(Test, Func1, ptr, SH_STATIC(Handler1_Func1), false);