Open jiridanek opened 4 years ago
Having overcome the reported issue, it looks like that is the least of my worries. Probably best to use mimick only in C code.
Feel free to cherry pick commits from https://github.com/Snaipe/Mimick/pull/13 -- I don't know if these 100% work, but I expect they'd at least let you compile.
I don't see any reason why mimick wouldn't work with C++ functions. Are you making sure the functions you're trying to mock are 1) not class methods and 2) that you're using mangled names when installing the mock (or marking the functions themselves extern "C"
?)
When I try, I get compile errors of the type
In C++ the type names have to be disambiguated, such as
mmk_stub_t
, and so on.