summaryrefslogtreecommitdiff
path: root/py/qstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/qstr.h')
-rw-r--r--py/qstr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/qstr.h b/py/qstr.h
index 63fd0c369..f4375ee0e 100644
--- a/py/qstr.h
+++ b/py/qstr.h
@@ -56,6 +56,7 @@ typedef struct _qstr_pool_t {
} qstr_pool_t;
#define QSTR_FROM_STR_STATIC(s) (qstr_from_strn((s), strlen(s)))
+#define QSTR_TOTAL() (MP_STATE_VM(last_pool)->total_prev_len + MP_STATE_VM(last_pool)->len)
void qstr_init(void);