aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-03 14:45:36 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-03 14:45:36 -0500
commit09b1d07d8bf9c712339d94653ebf077c94623a62 (patch)
tree7d294fd942f5ad31a6802d46c8ec786aef4415de /compile.c
parent7237cac2e558cf557260553823b39bc8e5e64171 (diff)
Clean up transpiling into separate .c/.h files
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index ab72a6ad..6794ffe8 100644
--- a/compile.c
+++ b/compile.c
@@ -1085,6 +1085,7 @@ module_code_t compile_file(ast_t *ast)
return (module_code_t){
.header=CORD_all(
+ "#pragma once\n",
// CORD_asprintf("#line 0 %r\n", Str__quoted(ast->file->filename, false)),
env->code->imports, "\n",
env->code->typedefs, "\n",