diff options
author | stijn <stijn@ignitron.net> | 2024-04-24 14:17:55 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-08-26 14:11:40 +1000 |
commit | a8d1c25a1b32759642f98e994800b39457ec6add (patch) | |
tree | 937d09ec3560052028d66adc5c90f62650714213 /ports/unix/coveragecpp.cpp | |
parent | e901ff85573d4cbec1e2656aea2e5603d6bf5bd9 (diff) |
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 <stijn@ignitron.net>
Diffstat (limited to 'ports/unix/coveragecpp.cpp')
-rw-r--r-- | ports/unix/coveragecpp.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ports/unix/coveragecpp.cpp b/ports/unix/coveragecpp.cpp index 93c1b387f..23c3955ae 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 <py/gc.h> +#include <py/obj.h> +#include <py/objarray.h> +#include <py/objexcept.h> +#include <py/objfun.h> +#include <py/objgenerator.h> +#include <py/objint.h> +#include <py/objlist.h> +#include <py/objmodule.h> +#include <py/objnamedtuple.h> +#include <py/objstr.h> +#include <py/objstringio.h> +#include <py/objtuple.h> +#include <py/objtype.h> +#include <py/runtime.h> } #if defined(MICROPY_UNIX_COVERAGE) |