aboutsummaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-15 12:41:25 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-15 12:41:25 +1000
commit07caf4f969a9ad09e7a18d6cf419d92848908e40 (patch)
tree87152483487820754af6e882d8b34f90c1402419 /py/emit.h
parent1d7c221b3023d784ba96cb501b9becae794dac1f (diff)
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/emit.h b/py/emit.h
index f63bb1d7a..d511eb259 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -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);