diff options
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/py/runtime.h b/py/runtime.h index 24df44abf..7abb3fb7f 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -97,12 +97,16 @@ void rt_assign_byte_code(int unique_code_id, byte *code, uint len, int n_args, i void rt_assign_native_code(int unique_code_id, py_fun_t f, uint len, int n_args); void rt_assign_inline_asm_code(int unique_code_id, py_fun_t f, uint len, int n_args); void py_obj_print(py_obj_t o); + +py_obj_t py_obj_new_int(machine_int_t value); +py_obj_t py_obj_new_str(qstr qstr); + int rt_is_true(py_obj_t arg); -machine_int_t py_get_int(py_obj_t arg); +machine_int_t py_obj_get_int(py_obj_t arg); machine_float_t py_obj_get_float(py_obj_t arg); -qstr py_get_qstr(py_obj_t arg); -py_obj_t *py_get_array_fixed_n(py_obj_t o, machine_int_t n); -py_obj_t py_obj_new_int(machine_int_t value); +qstr py_obj_get_qstr(py_obj_t arg); +py_obj_t *py_obj_get_array_fixed_n(py_obj_t o, machine_int_t n); + py_obj_t rt_load_const_dec(qstr qstr); py_obj_t rt_load_const_str(qstr qstr); py_obj_t rt_load_name(qstr qstr); |