all: Rename UMODULE to MODULE in preprocessor/Makefile vars.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
@@ -109,7 +109,7 @@ void mp_str_print_quoted(const mp_print_t *print, const byte *str_data, size_t s
|
||||
mp_printf(print, "%c", quote_char);
|
||||
}
|
||||
|
||||
#if MICROPY_PY_UJSON
|
||||
#if MICROPY_PY_JSON
|
||||
void mp_str_print_json(const mp_print_t *print, const byte *str_data, size_t str_len) {
|
||||
// for JSON spec, see http://www.ietf.org/rfc/rfc4627.txt
|
||||
// if we are given a valid utf8-encoded string, we will print it in a JSON-conforming way
|
||||
@@ -137,7 +137,7 @@ void mp_str_print_json(const mp_print_t *print, const byte *str_data, size_t str
|
||||
|
||||
STATIC void str_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
|
||||
GET_STR_DATA_LEN(self_in, str_data, str_len);
|
||||
#if MICROPY_PY_UJSON
|
||||
#if MICROPY_PY_JSON
|
||||
if (kind == PRINT_JSON) {
|
||||
mp_str_print_json(print, str_data, str_len);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user