summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-03 11:00:54 +0000
committerDamien George <damien.p.george@gmail.com>2014-04-03 11:00:54 +0000
commit8270e3853dc167d2d7946bb0de7a0f0bb2adde48 (patch)
treee261ee333b53fbe4560c94e37a531eaae2c0d60e /py/obj.h
parenta58a7aefbd330261cc5c79c9fc9d5c6a12d2aeeb (diff)
py: More robust int conversion and overflow checking.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 952187e46..f5ce873d6 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -359,6 +359,7 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2);
bool mp_obj_less(mp_obj_t o1, mp_obj_t o2);
machine_int_t mp_obj_get_int(mp_obj_t arg);
+bool mp_obj_get_int_maybe(mp_obj_t arg, machine_int_t *value);
#if MICROPY_ENABLE_FLOAT
mp_float_t mp_obj_get_float(mp_obj_t self_in);
void mp_obj_get_complex(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag);