We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8bcf80 commit 5aace07Copy full SHA for 5aace07
Include/node.h
@@ -27,16 +27,7 @@ extern DL_IMPORT(void) PyNode_Free(node *n);
27
#define STR(n) ((n)->n_str)
28
29
/* Assert that the type of a node is what we expect */
30
-#ifndef Py_DEBUG
31
-#define REQ(n, type) { /*pass*/ ; }
32
-#else
33
-#define REQ(n, type) \
34
- { if (TYPE(n) != (type)) { \
35
- fprintf(stderr, "FATAL: node type %d, required %d\n", \
36
- TYPE(n), type); \
37
- abort(); \
38
- } }
39
-#endif
+#define REQ(n, type) assert(TYPE(n) == (type))
40
41
extern DL_IMPORT(void) PyNode_ListTree(node *);
42
0 commit comments