summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-18 14:15:48 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-18 14:15:48 +0000
commit632cf5710ca49cdcc4593672650ca53092dd435c (patch)
tree3e0e9a286e0f6eadda8b3f9de91642c1c4e2d2d9 /py/obj.h
parent20006dbba9d2d84ead036fdfab7190e88b2337ce (diff)
parentd26b379eec155ddd7a4aa64057c3d0507eee79f5 (diff)
downloadmicropython-632cf5710ca49cdcc4593672650ca53092dd435c.tar.gz
micropython-632cf5710ca49cdcc4593672650ca53092dd435c.zip
Merge branch 'master' of github.com:dpgeorge/micropython
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 5ca0e01f68..af8a886e3f 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -261,6 +261,10 @@ void mp_obj_cell_set(mp_obj_t self_in, mp_obj_t obj);
// int
extern const mp_obj_type_t int_type;
+// For long int, returns value truncated to machine_int_t
+machine_int_t mp_obj_int_get(mp_obj_t self_in);
+// Will rains exception if value doesn't fit into machine_int_t
+machine_int_t mp_obj_int_get_checked(mp_obj_t self_in);
// exception
extern const mp_obj_type_t exception_type;