eranpeer / FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
MIT License
1.25k stars 175 forks source link

support for __stdcall methods #78

Open leleftheriades opened 7 years ago

leleftheriades commented 7 years ago

I am trying to mock an external api which uses the __stdcall calling convention as shown below:

class MockMe
{
public:
    virtual int __stdcall foo() = 0;
};

Mock<MockMe> mock;
When(Method(mock, foo)).Return(1);

but the compiler can't detect a matching stub method