Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ Support for FFF Framework #124

Open
VinayShirol-eaton opened this issue Mar 29, 2023 · 1 comment
Open

C++ Support for FFF Framework #124

VinayShirol-eaton opened this issue Mar 29, 2023 · 1 comment

Comments

@VinayShirol-eaton
Copy link

Hi team,
I am using FFF framework for my project. it is working fine with C. Now my requirement is to use it with C++ here I have couple of doubts,

  1. Does fff framework officially support full fledge C++ support.
  2. Do we have any example code for the same purpose.
@leonardopsantos
Copy link

I don't think FFF should be used with C++, or ever support C++. FFF uses linker seam to replace the code being mocked by its mocks/fakes. C++ have other mechanisms, like run-time polymorphism, that are better suited. The GNU linker, for example, uses name mangling, which make it extremely hard to create FFF fakes.

FFF is a fantastic piece of software for the job it proposes to do: create C fakes.

You're better off using a C++ framekwork:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants