summaryrefslogtreecommitdiffstatshomepage
path: root/examples/usercmodule/cppexample/examplemodule.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-05-12 17:03:14 +1000
committerDamien George <damien@micropython.org>2023-06-01 16:21:37 +1000
commit5e0452125146f3afed89c09f5813790156d24471 (patch)
tree7c8226caf407554a8d5fc7c5a78ac056c9c82e71 /examples/usercmodule/cppexample/examplemodule.c
parent6a8114eee8ff486d812b4efc5a94880b565640f3 (diff)
downloadmicropython-5e0452125146f3afed89c09f5813790156d24471.tar.gz
micropython-5e0452125146f3afed89c09f5813790156d24471.zip
examples/usercmodule: Add a sub-package example.
This demonstrates how to add a sub-package in a user c module, as well as how to define the necessary qstrs and enable the feature in the build. This is used by the unix coverage build to test this feature. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples/usercmodule/cppexample/examplemodule.c')
-rw-r--r--examples/usercmodule/cppexample/examplemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/usercmodule/cppexample/examplemodule.c b/examples/usercmodule/cppexample/examplemodule.c
index 5c84eccd79..96a1a74438 100644
--- a/examples/usercmodule/cppexample/examplemodule.c
+++ b/examples/usercmodule/cppexample/examplemodule.c
@@ -4,7 +4,7 @@
// See example.cpp for the definition.
STATIC MP_DEFINE_CONST_FUN_OBJ_2(cppfunc_obj, cppfunc);
-// Define all properties of the module.
+// Define all attributes of the module.
// Table entries are key/value pairs of the attribute name (a string)
// and the MicroPython object reference.
// All identifiers and strings are written as MP_QSTR_xxx and will be