summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-06 22:13:00 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-06 22:13:00 +0000
commite2e3d11e8744395d3103b824adc8609b13f2cdba (patch)
tree680bb38dac6c65722b38866d7d17befae0edb7af /py/obj.h
parent8137b004b004d8e3a594eab90afccb72b779273a (diff)
downloadmicropython-e2e3d11e8744395d3103b824adc8609b13f2cdba.tar.gz
micropython-e2e3d11e8744395d3103b824adc8609b13f2cdba.zip
py: Fix up number operations and coercion.
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 88a611ba7b..1ba7427cbb 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -200,10 +200,12 @@ qstr mp_obj_str_get(mp_obj_t self_in);
// float
extern const mp_obj_type_t float_type;
mp_float_t mp_obj_float_get(mp_obj_t self_in);
+mp_obj_t mp_obj_float_binary_op(int op, mp_float_t lhs_val, mp_obj_t rhs);
// complex
extern const mp_obj_type_t complex_type;
void mp_obj_complex_get(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag);
+mp_obj_t mp_obj_complex_binary_op(int op, mp_float_t lhs_real, mp_float_t lhs_imag, mp_obj_t rhs_in);
#endif
// tuple