mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
py/makemoduledefs.py: Add a way to register extensible built-in modules.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
3
py/obj.h
3
py/obj.h
@@ -434,6 +434,9 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
|
||||
// param obj_module: mp_obj_module_t instance
|
||||
#define MP_REGISTER_MODULE(module_name, obj_module)
|
||||
|
||||
// As above, but allow this module to be extended from the filesystem.
|
||||
#define MP_REGISTER_EXTENSIBLE_MODULE(module_name, obj_module)
|
||||
|
||||
// Declare a root pointer (to avoid garbage collection of a global static variable).
|
||||
// param variable_declaration: a valid C variable declaration
|
||||
#define MP_REGISTER_ROOT_POINTER(variable_declaration)
|
||||
|
||||
Reference in New Issue
Block a user