From a8d1c25a1b32759642f98e994800b39457ec6add Mon Sep 17 00:00:00 2001 From: stijn Date: Wed, 24 Apr 2024 14:17:55 +0200 Subject: [PATCH] unix/coveragecpp: Include all API headers in the C++ code. Make the CI builds compile the public API as C++ to catch accidental introductions of incompatible code. Signed-off-by: stijn --- ports/unix/coveragecpp.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ports/unix/coveragecpp.cpp b/ports/unix/coveragecpp.cpp index 93c1b387fe28..23c3955ae9d0 100644 --- a/ports/unix/coveragecpp.cpp +++ b/ports/unix/coveragecpp.cpp @@ -1,5 +1,20 @@ extern "C" { -#include "py/obj.h" +// Include the complete public API to verify everything compiles as C++. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include } #if defined(MICROPY_UNIX_COVERAGE)