summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/qstr.h')
-rw-r--r--py/qstr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/qstr.h b/py/qstr.h
index b68f60a443..1989ebe962 100644
--- a/py/qstr.h
+++ b/py/qstr.h
@@ -37,10 +37,12 @@
// first entry in enum will be MP_QSTR_NULL=0, which indicates invalid/no qstr
enum {
+#ifndef __QSTR_EXTRACT
#define QDEF(id, str) id,
#include "genhdr/qstrdefs.generated.h"
#undef QDEF
- MP_QSTR_number_of,
+#endif
+ MP_QSTRnumber_of, // no underscore so it can't clash with any of the above
};
typedef size_t qstr;