2020-10-08 16:52:25 +02:00
|
|
|
extern "C" {
|
2024-04-24 14:17:55 +02:00
|
|
|
// 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>
|
2020-10-08 16:52:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if defined(MICROPY_UNIX_COVERAGE)
|
|
|
|
|
|
|
|
|
|
// Just to test building of C++ code.
|
2024-02-27 15:32:29 +11:00
|
|
|
static mp_obj_t extra_cpp_coverage_impl() {
|
2020-10-08 16:52:25 +02:00
|
|
|
return mp_const_none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
mp_obj_t extra_cpp_coverage(void);
|
|
|
|
|
mp_obj_t extra_cpp_coverage(void) {
|
|
|
|
|
return extra_cpp_coverage_impl();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// This is extern to avoid name mangling.
|
|
|
|
|
extern const mp_obj_fun_builtin_fixed_t extra_cpp_coverage_obj = {{&mp_type_fun_builtin_0}, {extra_cpp_coverage}};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|