Copying and printing the copy
This commit is contained in:
@@ -834,9 +834,15 @@ compile_to_c_code() {
|
||||
|
||||
String core_stringify(Ast *);
|
||||
For(pctx->ordered_decls) {
|
||||
Ast *copy = ast_copy(it, 0);
|
||||
String r = core_stringify(it);
|
||||
printf("\n-----REAL!!!------\n");
|
||||
printf("%s\n", r.str);
|
||||
r = core_stringify(copy);
|
||||
printf("\n-----COPY!!!------\n");
|
||||
printf("%s\n", r.str);
|
||||
}
|
||||
pctx->gen.reset();
|
||||
|
||||
#if 0
|
||||
int di = 0;
|
||||
|
||||
Reference in New Issue
Block a user