summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-11 01:41:11 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-11 01:41:11 -0800
commit683466e55f2221cbd6b05106732c885bd324bc21 (patch)
tree714b75f2779b79b826d745c13f725835001f787f /py/obj.h
parentad97f2a49ea723cf21f828c99e0075ff1fd0680a (diff)
parentb8698fca75018b5cacaf9b2fdfd821f86b8acaf4 (diff)
Merge pull request #138 from chipaca/unify_bops
Merge RT_COMPARE_OPs with RT_BINARY_OPs.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index d897d906d..8d236008e 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -155,7 +155,6 @@ struct _mp_obj_type_t {
/*
What we might need to add here:
- compare_op
store_subscr list dict
len str tuple list map
@@ -241,6 +240,7 @@ extern const mp_obj_type_t none_type;
// bool
extern const mp_obj_type_t bool_type;
+#define MP_BOOL(x) (x ? mp_const_true : mp_const_false)
// cell
mp_obj_t mp_obj_cell_get(mp_obj_t self_in);