From 8f54c08691faa3dd859852d211230fd7d9791abd Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 15 Jan 2016 15:20:43 +0000 Subject: 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) --- py/emit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/emit.h') diff --git a/py/emit.h b/py/emit.h index 9d09ee2ef..7e8e03393 100644 --- a/py/emit.h +++ b/py/emit.h @@ -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); -- cgit v1.2.3