py: Proper framework for built-in 'type'.

This commit is contained in:
Damien George
2014-01-08 18:48:12 +00:00
parent 6c73ca1e75
commit 93a9b5b64d
4 changed files with 29 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ static void float_print(void (*print)(void *env, const char *fmt, ...), void *en
print(env, "%.8g", o->value);
}
// args are reverse in the array
static mp_obj_t float_make_new(mp_obj_t type_in, int n_args, const mp_obj_t *args) {
switch (n_args) {
case 0: