diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-15 15:20:43 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-01-27 14:27:10 +0000 |
commit | 8f54c08691faa3dd859852d211230fd7d9791abd (patch) | |
tree | 5cc82db6ea4d9d6538c6a876a09592a85fca4242 /py/obj.h | |
parent | 3d42aa07dd6e94942b3721ee42ba5454cd0edf55 (diff) | |
download | micropython-8f54c08691faa3dd859852d211230fd7d9791abd.tar.gz micropython-8f54c08691faa3dd859852d211230fd7d9791abd.zip |
py/inlineasm: Add ability to specify return type of asm_thumb funcs.
Supported return types are: object, bool, int, uint.
For example:
@micropython.asm_thumb
def foo(r0, r1) -> uint:
add(r0, r0, r1)
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -625,7 +625,7 @@ mp_obj_t mp_obj_new_exception_msg_varg(const mp_obj_type_t *exc_type, const char mp_obj_t mp_obj_new_fun_bc(mp_obj_t def_args, mp_obj_t def_kw_args, const byte *code, const mp_uint_t *const_table); mp_obj_t mp_obj_new_fun_native(mp_obj_t def_args_in, mp_obj_t def_kw_args, const void *fun_data, const mp_uint_t *const_table); mp_obj_t mp_obj_new_fun_viper(mp_uint_t n_args, void *fun_data, mp_uint_t type_sig); -mp_obj_t mp_obj_new_fun_asm(mp_uint_t n_args, void *fun_data); +mp_obj_t mp_obj_new_fun_asm(mp_uint_t n_args, void *fun_data, mp_uint_t type_sig); mp_obj_t mp_obj_new_gen_wrap(mp_obj_t fun); mp_obj_t mp_obj_new_closure(mp_obj_t fun, mp_uint_t n_closed, const mp_obj_t *closed); mp_obj_t mp_obj_new_tuple(mp_uint_t n, const mp_obj_t *items); |