From f38b06e939811d6ef9dc8e8addae35562df8a2de Mon Sep 17 00:00:00 2001 From: James Fraser Date: Fri, 14 Dec 2018 20:15:43 +1100 Subject: [PATCH] Fixed cpp test specifying calling convention. --- test/fff_test_cpp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/fff_test_cpp.cpp b/test/fff_test_cpp.cpp index 881b3b9..2c1c65a 100644 --- a/test/fff_test_cpp.cpp +++ b/test/fff_test_cpp.cpp @@ -71,7 +71,11 @@ namespace cxx // original declaration. namespace cxx { +#ifndef TEST_WITH_CALLING_CONVENTIONS FAKE_VOID_FUNC(voidfunc1, cxx::int_t); +#else + FAKE_VOID_FUNC(_cdecl, voidfunc1, cxx::int_t); +#endif } TEST_F(FFFTestSuite, cxx_fake_is_called)