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/emit.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/emit.h')
-rw-r--r-- | py/emit.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -268,7 +268,7 @@ typedef struct _emit_inline_asm_t emit_inline_asm_t; typedef struct _emit_inline_asm_method_table_t { void (*start_pass)(emit_inline_asm_t *emit, pass_kind_t pass, scope_t *scope, mp_obj_t *error_slot); - void (*end_pass)(emit_inline_asm_t *emit); + void (*end_pass)(emit_inline_asm_t *emit, mp_uint_t type_sig); mp_uint_t (*count_params)(emit_inline_asm_t *emit, mp_uint_t n_params, mp_parse_node_t *pn_params); bool (*label)(emit_inline_asm_t *emit, mp_uint_t label_num, qstr label_id); void (*align)(emit_inline_asm_t *emit, mp_uint_t align); |