diff options
Diffstat (limited to 'cgen.c')
-rw-r--r-- | cgen.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; } |