diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-10 04:14:10 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-11 00:14:33 +0200 |
commit | d6f27fe317bcb8f9e491504df469a74762069458 (patch) | |
tree | fb928ba520b3f7810ec8c2c21a7e7fd23cec8ab9 /py/obj.c | |
parent | e06edce786eea0595b6729a2ee0c5084a2650cf0 (diff) | |
download | micropython-d6f27fe317bcb8f9e491504df469a74762069458.tar.gz micropython-d6f27fe317bcb8f9e491504df469a74762069458.zip |
mp_obj_equal(): Print which types' equality not implemented before assert().
Diffstat (limited to 'py/obj.c')
-rw-r--r-- | py/obj.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -116,6 +116,8 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2) { } else if (MP_OBJ_IS_TYPE(o1, &str_type) && MP_OBJ_IS_TYPE(o2, &str_type)) { return mp_obj_str_get(o1) == mp_obj_str_get(o2); } else { + // TODO: Debugging helper + printf("Equality for '%s' and '%s' types not yet implemented\n", mp_obj_get_type_str(o1), mp_obj_get_type_str(o2)); assert(0); return false; } |