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 a04acb2 commit 123ee30Copy full SHA for 123ee30
3 files changed
tests/functional/prepro94.bi
@@ -0,0 +1,9 @@
1
+
2
3
+#ifdef MACRO
4
+# ifndef ANOTHER_MACRO
5
+# error This should not happen
6
+# endif
7
+#else
8
+ OK
9
+#endif
tests/functional/prepro94.out
@@ -0,0 +1,4 @@
+#line 1 "prepro94.bi"
+#line 8 "prepro94.bi"
+#line 10 "prepro94.bi"
zxbpp/zxbpp.py
@@ -543,7 +543,8 @@ def p_ifn_header(p):
543
global ENABLED
544
545
IFDEFS.append((ENABLED, p.lineno(2)))
546
- ENABLED = not ID_TABLE.defined(p[2])
+ if ENABLED:
547
+ ENABLED = not ID_TABLE.defined(p[2])
548
549
550
def p_if_expr_header(p):
0 commit comments