sourcehook/test/testhookmangen.cpp
branchhookman_autogen
changeset 449 78c6dfc7fff5
parent 448 742b470c0e5c
child 450 91fbd92a216b
     1.1 --- a/sourcehook/test/testhookmangen.cpp	Wed Nov 07 16:56:03 2007 +0000
     1.2 +++ b/sourcehook/test/testhookmangen.cpp	Thu Nov 08 18:17:26 2007 +0000
     1.3 @@ -133,7 +133,7 @@
     1.4  	} \
     1.5  	template <> struct MakeRet< PodRet##size > \
     1.6  	{ \
     1.7 -		static PodRet##size Do(int a) \
     1.8 +		static PodRet##size Do(int a) NO_OPTIMIZE \
     1.9  		{ \
    1.10  			PodRet##size x; \
    1.11  			memset(reinterpret_cast<void*>(x.actPod.x), a, size); \
    1.12 @@ -155,7 +155,7 @@
    1.13  	} \
    1.14  	template <> struct MakeRet< ObjRet##size > \
    1.15  	{ \
    1.16 -		static ObjRet##size Do(int a) \
    1.17 +		static ObjRet##size Do(int a) NO_OPTIMIZE \
    1.18  		{ \
    1.19  			ObjRet##size x; \
    1.20  			memset(reinterpret_cast<void*>(x.actObj.x), a, size); \
    1.21 @@ -639,6 +639,7 @@
    1.22  
    1.23  	/* no hooks - no hooks */
    1.24  	PtrBuf_Clear();
    1.25 +	asm("int $3");
    1.26  	obj13 = pTest110->Func(5);
    1.27  
    1.28  	g_Inside_LeafFunc = true;