summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamiano Mazzella <damianomazzella@gmail.com>2019-04-05 21:41:10 +0200
committerGitHub <noreply@github.com>2019-04-05 21:41:10 +0200
commita20aab0491b8d67ea4c1d991227df8ad02905ddd (patch)
treee148f12bb4b2655ddf3f7d2e0719c7e988026bf2
parentaf38f882ec981a967373eee857dc84c0c13e1d7f (diff)
Update obj.h
-rw-r--r--py/obj.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 95e208021..ab41a1b40 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -338,6 +338,13 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
#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}
#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}
+// Declare a module as a builtin, processed by makemoduledefs.py
+// param module_name: MP_QSTR_<module name>
+// param obj_module: mp_obj_module_t instance
+// prarm enabled_define: used as `#if (enabled_define) around entry`
+
+#define MP_REGISTER_MODULE(module_name, obj_module, enabled_define)
+
// Underlying map/hash table implementation (not dict object or map function)
typedef struct _mp_map_elem_t {