diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-25 21:04:13 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-25 22:31:33 +0300 |
commit | e5a3759ff5478392f914ba7a7346da60d9735bf4 (patch) | |
tree | e8d3511c687c81fe7911984cf192decf5602c300 /py/obj.h | |
parent | 8becca7c8289bbadf33abdb6b59618b214a90a30 (diff) | |
download | micropython-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |