mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user