summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-03-09 09:02:47 -0500
committerJeff Epler <jepler@gmail.com>2020-03-09 09:03:25 -0500
commit473e9c5ffb081ae2750948099ac8288b039d4255 (patch)
treeed62451386a0bd15f0f58b4ca5e98f0a476a0b34 /py/mpconfig.h
parent32647cd9b41c26003df0bdc385353f6a24b727d7 (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-xpy/mpconfig.h5
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 */