//inline static bool MP_OBJ_IS_TYPE(mp_const_obj_t o, const mp_obj_type_t *t) { return (MP_OBJ_IS_OBJ(o) && (((mp_obj_base_t*)(o))->type == (t))); } // this does not work for checking a string, use below macro for that
//inline static bool MP_OBJ_IS_INT(mp_const_obj_t o) { return (MP_OBJ_IS_SMALL_INT(o) || MP_OBJ_IS_TYPE(o, &mp_type_int)); } // returns true if o is a small int or long int
inlinestaticboolmp_obj_is_integer(mp_const_obj_to){returnMP_OBJ_IS_INT(o)||MP_OBJ_IS_TYPE(o,&mp_type_bool);}// returns true if o is bool, small int or long int
//static inline bool MP_OBJ_IS_TYPE(mp_const_obj_t o, const mp_obj_type_t *t) { return (MP_OBJ_IS_OBJ(o) && (((mp_obj_base_t*)(o))->type == (t))); } // this does not work for checking a string, use below macro for that
//static inline bool MP_OBJ_IS_INT(mp_const_obj_t o) { return (MP_OBJ_IS_SMALL_INT(o) || MP_OBJ_IS_TYPE(o, &mp_type_int)); } // returns true if o is a small int or long int
staticinlineboolmp_obj_is_integer(mp_const_obj_to){returnMP_OBJ_IS_INT(o)||MP_OBJ_IS_TYPE(o,&mp_type_bool);}// returns true if o is bool, small int or long int