summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-10-25 21:04:13 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-10-25 22:31:33 +0300
commite5a3759ff5478392f914ba7a7346da60d9735bf4 (patch)
treee8d3511c687c81fe7911984cf192decf5602c300 /py/obj.h
parent8becca7c8289bbadf33abdb6b59618b214a90a30 (diff)
downloadmicropython-e5a3759ff5478392f914ba7a7346da60d9735bf4.tar.gz
micropython-e5a3759ff5478392f914ba7a7346da60d9735bf4.zip
py: Factor out mp_obj_is_package() function.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 4d4c73a001..11d99ed606 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -555,6 +555,8 @@ typedef struct _mp_obj_module_t {
mp_obj_dict_t *globals;
} mp_obj_module_t;
mp_obj_dict_t *mp_obj_module_get_globals(mp_obj_t self_in);
+// check if given module object is a package
+bool mp_obj_is_package(mp_obj_t module);
// staticmethod and classmethod types; defined here so we can make const versions
// this structure is used for instances of both staticmethod and classmethod