meekrosoft / fff

A testing micro framework for creating function test doubles
Other
761 stars 167 forks source link

Remove extern "C" from fake declarations. #49

Closed zrax closed 5 years ago

zrax commented 6 years ago

Assuming your C interfaces are appropriately wrapped for C++, it is unnecessary to force the fakes to be declared extern "C", and doing so causes any functions declared with C++ linkage to be impossible to fake due to the conflicting linkage declarations.

This also adds a test case that proves a function with C++ linkage can be faked correctly, and fixes one test case that required some declarations to be seen with extern "C" before providing the fake implementation.

wulfgarpro commented 5 years ago

@zrax, please resolve your conflicts before review moves forward.

wulfgarpro commented 5 years ago

@zrax I've resolved all conflicts and merged, thanks.