make undefined as a constant value lazy

closes #268
This commit is contained in:
Andrew Kelley
2017-04-23 13:22:36 -04:00
parent 2ed47070ef
commit 6de33ded81
11 changed files with 139 additions and 93 deletions

View File

@@ -609,7 +609,7 @@ int main(int argc, char **argv) {
return EXIT_SUCCESS;
} else if (cmd == CmdParseH) {
codegen_parseh(g, &root_source_dir, &root_source_name, &root_source_code);
ast_render_decls(stdout, 4, g->root_import);
ast_render_decls(g, stdout, 4, g->root_import);
return EXIT_SUCCESS;
} else if (cmd == CmdTest) {
codegen_add_root_code(g, &root_source_dir, &root_source_name, &root_source_code);