Skip to content

Commit a8d1c25

Browse files
stinosdpgeorge
authored andcommitted
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 <[email protected]>
1 parent e901ff8 commit a8d1c25

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

ports/unix/coveragecpp.cpp

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
extern "C" {
2-
#include "py/obj.h"
2+
// Include the complete public API to verify everything compiles as C++.
3+
#include <py/gc.h>
4+
#include <py/obj.h>
5+
#include <py/objarray.h>
6+
#include <py/objexcept.h>
7+
#include <py/objfun.h>
8+
#include <py/objgenerator.h>
9+
#include <py/objint.h>
10+
#include <py/objlist.h>
11+
#include <py/objmodule.h>
12+
#include <py/objnamedtuple.h>
13+
#include <py/objstr.h>
14+
#include <py/objstringio.h>
15+
#include <py/objtuple.h>
16+
#include <py/objtype.h>
17+
#include <py/runtime.h>
318
}
419

520
#if defined(MICROPY_UNIX_COVERAGE)

0 commit comments

Comments
 (0)