meekrosoft / fff

A testing micro framework for creating function test doubles
Other
749 stars 163 forks source link

Update generator & fff.h to support custom function signatures #111

Closed yperess closed 1 year ago

yperess commented 1 year ago

Update generator & fff.h to support custom function signatures

Add the ability of the includer to override the function signature from the C standard function pointer to any other format of their choosing. This particularly is useful if developers want to use std::function (or some variant of it) which will allow capture groups of C++ lambdas.

Fixes #110

yperess commented 1 year ago

This is currently based on top of https://github.com/meekrosoft/fff/pull/102 so I marked it as a draft. Also, I still need to add tests.

AppVeyorBot commented 1 year ago

:x: Build fff 104-appveyor failed (commit https://github.com/meekrosoft/fff/commit/b4c347c2cb by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 105-appveyor failed (commit https://github.com/meekrosoft/fff/commit/c27933cf4b by @yperess)

yperess commented 1 year ago

Fixed -wcc path

AppVeyorBot commented 1 year ago

:white_check_mark: Build fff 106-appveyor completed (commit https://github.com/meekrosoft/fff/commit/ef7743323c by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 107-appveyor failed (commit https://github.com/meekrosoft/fff/commit/125163717d by @yperess)

yperess commented 1 year ago

Forgot to update the ms_vc_fff_test/ directory. I'll do that later today

yperess commented 1 year ago

Hmmm @meekrosoft would you be able to help me out here? I don't have MS vc so I'm guessing here, it looks like there's a project ID field but I'm not sure if I can just randomly generate it? Here's an example of one that's there

Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ms_vc_fff_test_cpp", "ms_vc_fff_test_cpp\ms_vc_fff_test_cpp.vcxproj", "{00EE1499-1C86-4F7B-8A00-9EBE696D0142}"
    ProjectSection(ProjectDependencies) = postProject
        {CDBC5A3A-59B8-4638-B818-935395302DAF} = {CDBC5A3A-59B8-4638-B818-935395302DAF}
    EndProjectSection
EndProject
AppVeyorBot commented 1 year ago

:x: Build fff 108-appveyor failed (commit https://github.com/meekrosoft/fff/commit/354d772363 by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 109-appveyor failed (commit https://github.com/meekrosoft/fff/commit/fdcbc69bf2 by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 110-appveyor failed (commit https://github.com/meekrosoft/fff/commit/e523c1f539 by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 111-appveyor failed (commit https://github.com/meekrosoft/fff/commit/63b72f01f0 by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 112-appveyor failed (commit https://github.com/meekrosoft/fff/commit/920d15d0e2 by @yperess)

yperess commented 1 year ago

@meekrosoft I could really use some help with the MS VC files, everything builds and tests are passing using make, but I can't get the configuration right with the CI

AppVeyorBot commented 1 year ago

:x: Build fff 113-appveyor failed (commit https://github.com/meekrosoft/fff/commit/3765dcc8c0 by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 114-appveyor failed (commit https://github.com/meekrosoft/fff/commit/e9fba99409 by @yperess)

AppVeyorBot commented 1 year ago

:x: Build fff 115-appveyor failed (commit https://github.com/meekrosoft/fff/commit/3f7be5001b by @yperess)