Fixed elif and else
authorRobert Pengelly <robertapengelly@hotmail.com>
Thu, 21 May 2026 16:36:22 +0000 (17:36 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Thu, 21 May 2026 16:36:22 +0000 (17:36 +0100)
pp.c

diff --git a/pp.c b/pp.c
index 18de06d4fdd71671eee7886c94d4231c375e21a2..b613e1a96d6dce41f5f694a5aec87ef1d1d2a1e3 100755 (executable)
--- a/pp.c
+++ b/pp.c
@@ -163,7 +163,7 @@ static int handler_elif (char *start, char **pp) {
     struct cond *cond;
     int ret = 1;
     
-    if (!iflevel) {
+    if (!ignore_line) {
     
         if (vec_ifstack.length == 0) {
         
@@ -200,7 +200,7 @@ static int handler_else (char *start, char **pp) {
     struct cond *cond;
     int ret = 1;
     
-    if (!iflevel) {
+    if (!ignore_line) {
     
         if (vec_ifstack.length == 0) {