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>
This commit is contained in:
@@ -132,8 +132,6 @@ extern const mp_obj_module_t mp_module___main__;
|
||||
extern const mp_obj_module_t mp_module_builtins;
|
||||
extern const mp_obj_module_t mp_module_sys;
|
||||
|
||||
void mp_module_sys_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest);
|
||||
|
||||
// Modules needed by the parser when MICROPY_COMP_MODULE_CONST is enabled.
|
||||
extern const mp_obj_module_t mp_module_errno;
|
||||
extern const mp_obj_module_t mp_module_uctypes;
|
||||
|
||||
Reference in New Issue
Block a user