Skip to content

Commit

Permalink
unix/coveragecpp: Include all API headers in the C++ code.
Browse files Browse the repository at this point in the history
Make the CI builds compile the public API as C++ to catch accidental
introductions of incompatible code.

Signed-off-by: stijn <stijn@ignitron.net>
  • Loading branch information
stinos authored and dpgeorge committed Aug 26, 2024
1 parent e901ff8 commit a8d1c25
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion ports/unix/coveragecpp.cpp
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit a8d1c25

Please sign in to comment.