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