diff -r 742b470c0e5c -r 78c6dfc7fff5 sourcehook/test/testhookmangen.cpp --- a/sourcehook/test/testhookmangen.cpp Wed Nov 07 16:56:03 2007 +0000 +++ b/sourcehook/test/testhookmangen.cpp Thu Nov 08 18:17:26 2007 +0000 @@ -133,7 +133,7 @@ } \ template <> struct MakeRet< PodRet##size > \ { \ - static PodRet##size Do(int a) \ + static PodRet##size Do(int a) NO_OPTIMIZE \ { \ PodRet##size x; \ memset(reinterpret_cast(x.actPod.x), a, size); \ @@ -155,7 +155,7 @@ } \ template <> struct MakeRet< ObjRet##size > \ { \ - static ObjRet##size Do(int a) \ + static ObjRet##size Do(int a) NO_OPTIMIZE \ { \ ObjRet##size x; \ memset(reinterpret_cast(x.actObj.x), a, size); \ @@ -639,6 +639,7 @@ /* no hooks - no hooks */ PtrBuf_Clear(); + asm("int $3"); obj13 = pTest110->Func(5); g_Inside_LeafFunc = true;