We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 769e37b commit 43d08d6Copy full SHA for 43d08d6
1 file changed
py/misc.h
@@ -50,6 +50,9 @@ typedef unsigned int uint;
50
#define _MP_STRINGIFY(x) #x
51
#define MP_STRINGIFY(x) _MP_STRINGIFY(x)
52
53
+// Static assertion macro
54
+#define MP_STATIC_ASSERT(cond) ((void)sizeof(char[1 - 2 * !(cond)]))
55
+
56
/** memory allocation ******************************************/
57
58
// TODO make a lazy m_renew that can increase by a smaller amount than requested (but by at least 1 more element)
0 commit comments