diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-13 01:00:51 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-13 01:00:51 +0000 |
commit | 8dfbd2d5894c98bd7b48e3e69bec0216d06ebb47 (patch) | |
tree | 6fdb6777c081202129b52f183d5c9312f385fd7e /py/emit.h | |
parent | 1bf5a022fe37d40604734c28794b402cd8c935e2 (diff) |
py: Make inline assembler raise proper SyntaxError exception on error.
Also gives line number of location of error. Very useful!
Diffstat (limited to 'py/emit.h')
-rw-r--r-- | py/emit.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -192,8 +192,8 @@ void emit_native_arm_free(emit_t *emit); 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); - bool (*end_pass)(emit_inline_asm_t *emit); + 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); mp_uint_t (*count_params)(emit_inline_asm_t *emit, mp_uint_t n_params, mp_parse_node_t *pn_params); void (*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); |