diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-27 23:16:20 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-27 23:16:20 +0000 |
commit | c7aa9fcae571a442a50c90409396788dd0b28c24 (patch) | |
tree | 8959e333f1d9183fbfb781ed974a17f1e27d71c7 /py/objint.c | |
parent | 4e8dc8c41b6f68269571fe218f7292fc86cf3ddb (diff) | |
parent | 9b00dad7bb0125a3459ca4f9c939c7510bd2f77f (diff) |
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/objint.c')
-rw-r--r-- | py/objint.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/py/objint.c b/py/objint.c index 1305f1900..1a04408af 100644 --- a/py/objint.c +++ b/py/objint.c @@ -52,6 +52,12 @@ void int_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj } // This is called only for non-SMALL_INT +mp_obj_t int_unary_op(int op, mp_obj_t o_in) { + assert(0); + return mp_const_none; +} + +// This is called only for non-SMALL_INT mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) { assert(0); return mp_const_none; @@ -96,5 +102,6 @@ const mp_obj_type_t int_type = { "int", .print = int_print, .make_new = int_make_new, + .unary_op = int_unary_op, .binary_op = int_binary_op, }; |