summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpqstr.h
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-05 22:11:01 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-05 22:11:01 +0000
commit8428b8f3c94fb4adab6b094c1e0718168ebd8cbd (patch)
tree06cfd0bcfb68771884761209939c47adc8457657 /py/mpqstr.h
parentf1c6ad46afa3eaf6df999cd51eb406110b6cac69 (diff)
parent12e2656472bf53e467c066eda6f3e177a97210ca (diff)
downloadmicropython-8428b8f3c94fb4adab6b094c1e0718168ebd8cbd.tar.gz
micropython-8428b8f3c94fb4adab6b094c1e0718168ebd8cbd.zip
Merge remote-tracking branch 'upstream/master' into list_insert
Diffstat (limited to 'py/mpqstr.h')
-rw-r--r--py/mpqstr.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/py/mpqstr.h b/py/mpqstr.h
new file mode 100644
index 0000000000..1440fb3b80
--- /dev/null
+++ b/py/mpqstr.h
@@ -0,0 +1,13 @@
+// See mpqstrraw.h for a list of qstr's that are available as constants.
+// Reference them as MP_QSTR_xxxx.
+//
+// Note: it would be possible to define MP_QSTR_xxx as qstr_from_str_static("xxx")
+// for qstrs that are referenced this way, but you don't want to have them in ROM.
+
+enum {
+ MP_QSTR_nil = 0,
+#define Q(id) MP_QSTR_##id,
+#include "mpqstrraw.h"
+#undef Q
+ MP_QSTR_number_of,
+} category_t;