diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-03-09 09:02:47 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-03-09 09:03:25 -0500 |
| commit | 473e9c5ffb081ae2750948099ac8288b039d4255 (patch) | |
| tree | ed62451386a0bd15f0f58b4ca5e98f0a476a0b34 /py/mpconfig.h | |
| parent | 32647cd9b41c26003df0bdc385353f6a24b727d7 (diff) | |
f-strings: Make optional, defaulting to !CIRCUITPY_MINIMAL_BUILD
This should reclaim *most* code space added to handle f-strings.
However, there may be some small code growth as parse_string_literal
takes a new parameter (which will always be 0, so hopefully the optimizer
eliminates it)
Diffstat (limited to 'py/mpconfig.h')
| -rwxr-xr-x | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 8f78ade5c..01572f546 100755 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -377,6 +377,11 @@ #define MICROPY_COMP_RETURN_IF_EXPR (0) #endif +// Whether to include parsing of f-string literals +#ifndef MICROPY_COMP_FSTRING_LITERAL +#define MICROPY_COMP_FSTRING_LITERAL (1) +#endif + /*****************************************************************************/ /* Internal debugging stuff */ |
