summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cgen.c b/cgen.c
index d0ebedd..f11a94a 100644
--- a/cgen.c
+++ b/cgen.c
@@ -2028,6 +2028,11 @@ static bool cgen_stmt(CGenerator *g, Statement *s) {
if (!cgen_ret(g, has_expr ? &s->ret.expr : NULL))
return false;
} break;
+ case STMT_INCLUDE:
+ arr_foreach(s->inc.stmts, Statement, sub)
+ if (!cgen_stmt(g, sub))
+ return false;
+ break;
}
return true;
}
@@ -2110,6 +2115,11 @@ static bool cgen_defs_stmt(CGenerator *g, Statement *s) {
if (!cgen_defs_expr(g, &s->ret.expr))
return false;
break;
+ case STMT_INCLUDE:
+ arr_foreach(s->inc.stmts, Statement, sub)
+ if (!cgen_defs_stmt(g, sub))
+ return false;
+ break;
}
return true;
}