runtime0: Make flags match micropython
.. by moving our ASYNC flag after the flags defined upstream. Fixes the test failure in mpy_native.
This commit is contained in:
parent
023a56fe43
commit
9795197c99
1 changed files with 6 additions and 6 deletions
|
|
@ -34,13 +34,13 @@
|
||||||
#define MP_SCOPE_FLAG_VARKEYWORDS (0x02)
|
#define MP_SCOPE_FLAG_VARKEYWORDS (0x02)
|
||||||
#define MP_SCOPE_FLAG_VARARGS (0x04)
|
#define MP_SCOPE_FLAG_VARARGS (0x04)
|
||||||
#define MP_SCOPE_FLAG_DEFKWARGS (0x08)
|
#define MP_SCOPE_FLAG_DEFKWARGS (0x08)
|
||||||
#define MP_SCOPE_FLAG_ASYNC (0x10)
|
#define MP_SCOPE_FLAG_REFGLOBALS (0x10) // used only if native emitter enabled
|
||||||
#define MP_SCOPE_FLAG_REFGLOBALS (0x20) // used only if native emitter enabled
|
#define MP_SCOPE_FLAG_HASCONSTS (0x20) // used only if native emitter enabled
|
||||||
#define MP_SCOPE_FLAG_HASCONSTS (0x40) // used only if native emitter enabled
|
|
||||||
#define MP_SCOPE_FLAG_VIPERRET_POS (7) // 3 bits used for viper return type, to pass from compiler to native emitter
|
#define MP_SCOPE_FLAG_VIPERRET_POS (7) // 3 bits used for viper return type, to pass from compiler to native emitter
|
||||||
#define MP_SCOPE_FLAG_VIPERRELOC (0x20) // used only when loading viper from .mpy
|
#define MP_SCOPE_FLAG_VIPERRELOC (0x10) // used only when loading viper from .mpy
|
||||||
#define MP_SCOPE_FLAG_VIPERRODATA (0x40) // used only when loading viper from .mpy
|
#define MP_SCOPE_FLAG_VIPERRODATA (0x20) // used only when loading viper from .mpy
|
||||||
#define MP_SCOPE_FLAG_VIPERBSS (0x80) // used only when loading viper from .mpy
|
#define MP_SCOPE_FLAG_VIPERBSS (0x40) // used only when loading viper from .mpy
|
||||||
|
#define MP_SCOPE_FLAG_ASYNC (0x80)
|
||||||
|
|
||||||
// types for native (viper) function signature
|
// types for native (viper) function signature
|
||||||
#define MP_NATIVE_TYPE_OBJ (0x00)
|
#define MP_NATIVE_TYPE_OBJ (0x00)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue