aboutsummaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-15 15:20:43 +0000
committerDamien George <damien.p.george@gmail.com>2016-01-27 14:27:10 +0000
commit8f54c08691faa3dd859852d211230fd7d9791abd (patch)
tree5cc82db6ea4d9d6538c6a876a09592a85fca4242 /py/emit.h
parent3d42aa07dd6e94942b3721ee42ba5454cd0edf55 (diff)
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.h2
1 files changed, 1 insertions, 1 deletions
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);