summaryrefslogtreecommitdiffstatshomepage
path: root/py/objmodule.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/objmodule.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/objmodule.c')
-rw-r--r--py/objmodule.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index 8ffae139bc..5266421b79 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -34,12 +34,6 @@
#include "py/runtime.h"
#include "py/builtin.h"
-#ifndef NO_QSTR
-// Only include module definitions when not doing qstr extraction, because the
-// qstr extraction stage also generates this module definition header file.
-#include "genhdr/moduledefs.h"
-#endif
-
STATIC void module_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
(void)kind;
mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in);