py/qstr: Add QSTR_TOTAL() macro to get number of qstrs.

pull/3617/head
Damien George 2018-02-15 18:12:01 +11:00
rodzic 2a0cbc0d38
commit a8775aaeb0
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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);