type->print(): Distinguish str() and repr() variety by passing extra param.
diff --git a/unix/main.c b/unix/main.c
index 15a4000..e96ee28 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -63,7 +63,7 @@
nlr_pop();
} else {
// uncaught exception
- mp_obj_print((mp_obj_t)nlr.ret_val);
+ mp_obj_print((mp_obj_t)nlr.ret_val, PRINT_REPR);
printf("\n");
}
}
@@ -159,7 +159,7 @@
int value;
} test_obj_t;
-static void test_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) {
+static void test_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
test_obj_t *self = self_in;
print(env, "<test %d>", self->value);
}