summaryrefslogtreecommitdiffstatshomepage
path: root/py/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/misc.h')
-rw-r--r--py/misc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/misc.h b/py/misc.h
index 0be4a87758..a84603ceb5 100644
--- a/py/misc.h
+++ b/py/misc.h
@@ -46,7 +46,11 @@ typedef unsigned int uint;
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#endif
-/** memomry allocation ******************************************/
+// Classical double-indirection stringification of preprocessor macro's value
+#define _MP_STRINGIFY(x) #x
+#define MP_STRINGIFY(x) _MP_STRINGIFY(x)
+
+/** memory allocation ******************************************/
// TODO make a lazy m_renew that can increase by a smaller amount than requested (but by at least 1 more element)