You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
type->print(): Distinguish str() and repr() variety by passing extra param.
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ typedef struct _mp_obj_float_t {
|
||||
|
||||
mp_obj_t mp_obj_new_float(mp_float_t value);
|
||||
|
||||
static void float_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in) {
|
||||
static void float_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) {
|
||||
mp_obj_float_t *o = o_in;
|
||||
print(env, "%.8g", o->value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user