diff options
author | Damien George <damien.p.george@gmail.com> | 2018-09-15 12:41:25 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-09-15 12:41:25 +1000 |
commit | 07caf4f969a9ad09e7a18d6cf419d92848908e40 (patch) | |
tree | 87152483487820754af6e882d8b34f90c1402419 /py/emit.h | |
parent | 1d7c221b3023d784ba96cb501b9becae794dac1f (diff) | |
download | micropython-07caf4f969a9ad09e7a18d6cf419d92848908e40.tar.gz micropython-07caf4f969a9ad09e7a18d6cf419d92848908e40.zip |
py/emit: Remove need to call set_native_type to set viper return type.
Instead this return type is now stored in the scope_flags.
Diffstat (limited to 'py/emit.h')
-rw-r--r-- | py/emit.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -51,7 +51,6 @@ typedef enum { #define MP_EMIT_BREAK_FROM_FOR (0x8000) -#define MP_EMIT_NATIVE_TYPE_RETURN (1) #define MP_EMIT_NATIVE_TYPE_ARG (2) // Kind for emit_id_ops->local() @@ -161,6 +160,8 @@ typedef struct _emit_method_table_t { void (*end_except_handler)(emit_t *emit); } emit_method_table_t; +int mp_native_type_from_qstr(qstr qst); + void mp_emit_common_get_id_for_load(scope_t *scope, qstr qst); void mp_emit_common_get_id_for_modification(scope_t *scope, qstr qst); void mp_emit_common_id_op(emit_t *emit, const mp_emit_method_table_id_ops_t *emit_method_table, scope_t *scope, qstr qst); |