aboutsummaryrefslogtreecommitdiff
path: root/pc.l
diff options
context:
space:
mode:
Diffstat (limited to 'pc.l')
-rw-r--r--pc.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/pc.l b/pc.l
index eb8b4ea..d55e54e 100644
--- a/pc.l
+++ b/pc.l
@@ -43,9 +43,11 @@ output {
tmp->func_info->argc = -1;
tmp->func_info->argv = NULL;
+#ifdef GENERATE_CODE
fprintf(stdout, ".data\n");
fprintf(stdout, "int_print:\n\t .asciz \"%%d\\n\"\n");
fprintf(stdout, "float_print:\n\t .asciz \"%%f\\n\"\n.text\n");
+#endif
return IO;