diff options
Diffstat (limited to 'py/compile.h')
| -rw-r--r-- | py/compile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/compile.h b/py/compile.h index 5e0fd8b31..f9970a521 100644 --- a/py/compile.h +++ b/py/compile.h @@ -30,6 +30,11 @@ #include "py/parse.h" #include "py/emitglue.h" +#if MICROPY_COMP_ALLOW_TOP_LEVEL_AWAIT +// set to `true` to allow top-level await expressions +extern bool mp_compile_allow_top_level_await; +#endif + // the compiler will raise an exception if an error occurred // the compiler will clear the parse tree before it returns // mp_globals_get() will be used for the context |
