summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-28 03:40:06 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-28 03:40:06 +0200
commit0b7e29c025621d940552e66d26b7470f36c579df (patch)
treef5d605a683505533c9c9df6d5dad726e69eb3ee5 /py/obj.h
parent8e991e06802a378ffa9bd1669d6454fb0e08e49f (diff)
downloadmicropython-0b7e29c025621d940552e66d26b7470f36c579df.tar.gz
micropython-0b7e29c025621d940552e66d26b7470f36c579df.zip
Factor out quoted string print function for reuse (mp_str_print_quoted()).
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 9c6a354220..4e2c956835 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -291,6 +291,7 @@ uint mp_obj_str_get_len(mp_obj_t self_in);
qstr mp_obj_str_get_qstr(mp_obj_t self_in); // use this if you will anyway convert the string to a qstr
const char *mp_obj_str_get_str(mp_obj_t self_in); // use this only if you need the string to be null terminated
const byte *mp_obj_str_get_data(mp_obj_t self_in, uint *len);
+void mp_str_print_quoted(void (*print)(void *env, const char *fmt, ...), void *env, const byte *str_data, uint str_len);
// bytes
extern const mp_obj_type_t bytes_type;