From 601210ca83e424d766b9be717b3d2b603b69ead6 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Mon, 8 Oct 2007 15:29:38 +0000 Subject: [PATCH] Added back SH_GET_ORIG_VFNPTR test --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40474 --- sourcehook/test/test1.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sourcehook/test/test1.cpp b/sourcehook/test/test1.cpp index 4e9a7e6..d7fa002 100644 --- a/sourcehook/test/test1.cpp +++ b/sourcehook/test/test1.cpp @@ -439,6 +439,7 @@ bool TestBasic(std::string &error) new State_F1_Called, NULL), "Part 1"); + CHECK_COND(SH_GET_ORIG_VFNPTR_ENTRY(pTest, &Test::F1) == pOrigVfnPtrF1, "Part S1"); // 2) Request a call class again SourceHook::CallClass *cc2 = SH_GET_CALLCLASS(pTest); @@ -478,6 +479,7 @@ bool TestBasic(std::string &error) new State_F1_PreHandler_Called(&f1_handlers), NULL), "Part 3"); + CHECK_COND(SH_GET_ORIG_VFNPTR_ENTRY(pTest, &Test::F1) == pOrigVfnPtrF1, "Part S3"); // 4) Rerequest the callclass SH_RELEASE_CALLCLASS(cc);