aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
blob: 4358148c04dca28c788c5db251435e41f74a748d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdlib.h>
#include <stdint.h>

#include "nlr.h"
#include "misc.h"
#include "mpconfig.h"
#include "obj.h"

void type_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) {
    print(env, "type?");
}

const mp_obj_type_t mp_const_type = {
    { &mp_const_type },
    "type?",
    type_print, // print
    NULL, // call_n
    NULL, // unary_op
    NULL, // binary_op
    NULL, // getiter
    NULL, // iternext
    {{NULL, NULL},}, // method list
};