公共C-API包括py/
目录下所有C头文件中定义的函数。大部分重要的核心运行时C API都在runtime.h
和obj.h
中公开。
下面是obj.h
中公共API函数的示例:
mp_obj_t mp_obj_new_list(size_t n, mp_obj_t *items);
mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg);
mp_obj_t
公共C-API包括py/
目录下所有C头文件中定义的函数。大部分重要的核心运行时C API都在runtime.h
和obj.h
中公开。
下面是obj.h
中公共API函数的示例:
mp_obj_t mp_obj_new_list(size_t n, mp_obj_t *items);
mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg);
mp_obj_t