Skip to content

Commit a20aab0

Browse files
authored
Update obj.h
1 parent af38f88 commit a20aab0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

py/obj.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,13 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
338338
#define MP_DEFINE_CONST_STATICMETHOD_OBJ(obj_name, fun_name) const mp_rom_obj_static_class_method_t obj_name = {{&mp_type_staticmethod}, fun_name}
339339
#define MP_DEFINE_CONST_CLASSMETHOD_OBJ(obj_name, fun_name) const mp_rom_obj_static_class_method_t obj_name = {{&mp_type_classmethod}, fun_name}
340340

341+
// Declare a module as a builtin, processed by makemoduledefs.py
342+
// param module_name: MP_QSTR_<module name>
343+
// param obj_module: mp_obj_module_t instance
344+
// prarm enabled_define: used as `#if (enabled_define) around entry`
345+
346+
#define MP_REGISTER_MODULE(module_name, obj_module, enabled_define)
347+
341348
// Underlying map/hash table implementation (not dict object or map function)
342349

343350
typedef struct _mp_map_elem_t {

0 commit comments

Comments
 (0)