summaryrefslogtreecommitdiffstatshomepage
path: root/py/modsys.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-06-12 13:09:48 +1000
committerDamien George <damien@micropython.org>2023-06-14 19:03:46 +1000
commit5ce1a03a78bf87c914d53f63a35cf2b81963e6e4 (patch)
tree93aca7cbe52a9edd02441372041e6d1927b58852 /py/modsys.c
parent44295c9daa8a9210e2855ef431de21362c0cb662 (diff)
downloadmicropython-5ce1a03a78bf87c914d53f63a35cf2b81963e6e4.tar.gz
micropython-5ce1a03a78bf87c914d53f63a35cf2b81963e6e4.zip
py/makemoduledefs.py: Automatically declare delegation attr functions.
So that the delegation functions don't need to be put somewhere global, like in mpconfigport.h. That would otherwise make it hard for extension modules to use delegation. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/modsys.c')
-rw-r--r--py/modsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modsys.c b/py/modsys.c
index 9b3a2bc163..38105ee218 100644
--- a/py/modsys.c
+++ b/py/modsys.c
@@ -336,7 +336,7 @@ MP_REGISTER_ROOT_POINTER(mp_obj_t sys_exitfunc);
#if MICROPY_PY_SYS_ATTR_DELEGATION
// Contains mutable sys attributes.
MP_REGISTER_ROOT_POINTER(mp_obj_t sys_mutable[MP_SYS_MUTABLE_NUM]);
-MP_REGISTER_MODULE_DELEGATION(mp_module_sys, &mp_module_sys_attr);
+MP_REGISTER_MODULE_DELEGATION(mp_module_sys, mp_module_sys_attr);
#endif
#endif // MICROPY_PY_SYS