aboutsummaryrefslogtreecommitdiff
path: root/py/runtime0.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/runtime0.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/runtime0.h')
-rw-r--r--py/runtime0.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime0.h b/py/runtime0.h
index b47a10ea2..f26b701bf 100644
--- a/py/runtime0.h
+++ b/py/runtime0.h
@@ -32,6 +32,7 @@
#define MP_SCOPE_FLAG_GENERATOR (0x04)
#define MP_SCOPE_FLAG_DEFKWARGS (0x08)
#define MP_SCOPE_FLAG_REFGLOBALS (0x10) // used only if native emitter enabled
+#define MP_SCOPE_FLAG_VIPERRET_POS (5) // top 3 bits used for viper return type
// types for native (viper) function signature
#define MP_NATIVE_TYPE_OBJ (0x00)