Add di's to ast_copy

This commit is contained in:
Krzosa Karol
2023-03-31 21:40:39 +02:00
parent 61f8c5c825
commit d552716b49
3 changed files with 36 additions and 24 deletions

View File

@@ -911,6 +911,7 @@ CORE_Static String
compile_to_c_code() {
pctx->time.code_generation = os_time();
#if 0
int di = 0;
For(pctx->ordered_decls) {
for (Ast_Iter iter = iterate_depth_first(pctx->heap, it); iter.ast; next(&iter)) {
@@ -960,10 +961,12 @@ compile_to_c_code() {
}
}
String str = string_flatten(pctx->perm, &pctx->gen);
printf("%s\n", str.str);
printf("%s", str.str);
pctx->gen.reset();
di += 1;
}
printf("\n");
#endif
prefixed_string_type = string_fmt(pctx->perm, "%QString", pctx->symbol_prefix);
if (pctx->single_header_library_mode) {