summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-07-14 23:38:49 +1000
committerDamien George <damien@micropython.org>2021-07-15 00:12:41 +1000
commit70b8e1d1f5df9b8f80992daa5d60460d45998a8e (patch)
tree151e3d883c32fbfba7aac7ed94554db57c55a9f0 /py/obj.h
parent022b8a7fea5e74b6b83895b2ff555ceab9af478c (diff)
py/obj: Fix formatting of comment for mp_obj_is_integer.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index 578c55eef..11918ba17 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -779,9 +779,11 @@ bool mp_obj_is_callable(mp_obj_t o_in);
mp_obj_t mp_obj_equal_not_equal(mp_binary_op_t op, mp_obj_t o1, mp_obj_t o2);
bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2);
+// returns true if o is bool, small int or long int
static inline bool mp_obj_is_integer(mp_const_obj_t o) {
return mp_obj_is_int(o) || mp_obj_is_bool(o);
-} // returns true if o is bool, small int or long int
+}
+
mp_int_t mp_obj_get_int(mp_const_obj_t arg);
mp_int_t mp_obj_get_int_truncated(mp_const_obj_t arg);
bool mp_obj_get_int_maybe(mp_const_obj_t arg, mp_int_t *value);