Skip to content
Snippets Groups Projects
Commit dc3eb55e authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/obj.h: If not float support is enabled, define mp_obj_is_float(o) to false.

We have so many configuration options, that finally having shortcuts like
this is helpful and cuts on number of ifdef's.
parent e5cff5b2
No related branches found
No related tags found
No related merge requests found
...@@ -710,6 +710,8 @@ mp_obj_t mp_obj_float_binary_op(mp_uint_t op, mp_float_t lhs_val, mp_obj_t rhs); ...@@ -710,6 +710,8 @@ mp_obj_t mp_obj_float_binary_op(mp_uint_t op, mp_float_t lhs_val, mp_obj_t rhs);
// complex // complex
void mp_obj_complex_get(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag); 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(mp_uint_t op, mp_float_t lhs_real, mp_float_t lhs_imag, mp_obj_t rhs_in); // can return MP_OBJ_NULL if op not supported mp_obj_t mp_obj_complex_binary_op(mp_uint_t op, mp_float_t lhs_real, mp_float_t lhs_imag, mp_obj_t rhs_in); // can return MP_OBJ_NULL if op not supported
#else
#define mp_obj_is_float(o) (false)
#endif #endif
// tuple // tuple
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment