diff options
author | Damien George <damien.p.george@gmail.com> | 2015-08-20 23:30:12 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-10-20 12:35:17 +0100 |
commit | aaef1851a748af95f8b105ef2d1d4f35e6ede02b (patch) | |
tree | dec9fac8e9ed288aa0b4a2abfed093208c2dd12e /py/obj.h | |
parent | 60401d461ab41d94eeb174ae0f4db9a57d43880a (diff) | |
download | micropython-aaef1851a748af95f8b105ef2d1d4f35e6ede02b.tar.gz micropython-aaef1851a748af95f8b105ef2d1d4f35e6ede02b.zip |
py: Add mp_obj_is_float function (macro) and use it where appropriate.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -568,6 +568,7 @@ typedef struct _mp_obj_float_t { mp_obj_base_t base; mp_float_t value; } mp_obj_float_t; +#define mp_obj_is_float(o) MP_OBJ_IS_TYPE((o), &mp_type_float) mp_float_t mp_obj_float_get(mp_obj_t self_in); mp_obj_t mp_obj_float_binary_op(mp_uint_t op, mp_float_t lhs_val, mp_obj_t rhs); // can return MP_OBJ_NULL if op not supported |