diff options
Diffstat (limited to 'examples/usercmodule/cppexample/examplemodule.h')
-rw-r--r-- | examples/usercmodule/cppexample/examplemodule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/usercmodule/cppexample/examplemodule.h b/examples/usercmodule/cppexample/examplemodule.h new file mode 100644 index 0000000000..d89384a630 --- /dev/null +++ b/examples/usercmodule/cppexample/examplemodule.h @@ -0,0 +1,5 @@ +// Include MicroPython API. +#include "py/runtime.h" + +// Declare the function we'll make available in Python as cppexample.cppfunc(). +extern mp_obj_t cppfunc(mp_obj_t a_obj, mp_obj_t b_obj); |