aboutsummaryrefslogtreecommitdiff
path: root/py/objtuple.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-27 22:49:47 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-03-03 11:42:53 +0800
commite74f52b76c2be9aefca689e34cd05f8f64be02f8 (patch)
treea8e45a23c469ea56390535001f423892ad8d572a /py/objtuple.h
parentd86d22e1e7db19c4b50d92862f8eb0a430d64444 (diff)
namedtuple: Inherit unary/binary ops from tuple base class.
Diffstat (limited to 'py/objtuple.h')
-rw-r--r--py/objtuple.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objtuple.h b/py/objtuple.h
index 6ff38c10e..c310bfb7d 100644
--- a/py/objtuple.h
+++ b/py/objtuple.h
@@ -5,3 +5,5 @@ typedef struct _mp_obj_tuple_t {
} mp_obj_tuple_t;
void tuple_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind);
+mp_obj_t tuple_unary_op(int op, mp_obj_t self_in);
+mp_obj_t tuple_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs);