diff options
Diffstat (limited to 'py/objtype.c')
| -rw-r--r-- | py/objtype.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/py/objtype.c b/py/objtype.c new file mode 100644 index 000000000..4358148c0 --- /dev/null +++ b/py/objtype.c @@ -0,0 +1,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 +}; |
