On Fri, Sep 24, 2021 at 08:06:06AM -0400, Wietse Venema <wie...@porcupine.org> wrote:
> raf: > > On Thu, Sep 23, 2021 at 06:46:33AM -0400, Wietse Venema > > <wie...@porcupine.org> wrote: > > > > > C and C++ are similar enough that C can easily be wrapped in C++. > > > I'd love to adopt Gtest which I have been using internally at Google > > > over the past 5+ years. > > > > > > Wietse > > > > That would give the best return to investment ratio. > > It would be nice if Gtest could support testing C. :-) > > To call C-compiled code from C++, update C header files thusly: > > #ifdef __cplusplus > extern "C" { > #endif > > ...C declarations... > > ...#ifdef __cplusplus > } > #endif > > Wietse So maybe Gtest could be used without actually migrating to C++. cheers, raf