diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-14 00:19:16 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-14 00:19:16 -0500 |
| commit | 1af5ab6d4e791b1beb5ce30b57b7c35cf96d8a25 (patch) | |
| tree | b33e6a77acaf43bfac1a2d42bbc1e5181f405474 /nextlang.c | |
| parent | b3e0f11644f439eb02a209f6ae965ceea7a1b2d5 (diff) | |
Add #line directives for source code mapping
Diffstat (limited to 'nextlang.c')
| -rw-r--r-- | nextlang.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -55,6 +55,7 @@ int main(int argc, char *argv[]) } CORD program = CORD_asprintf( + "#line 0 \"%s\"\n" // file "// Generated code:\n" "%r\n" // imports "%r\n" // typedefs @@ -74,6 +75,7 @@ int main(int argc, char *argv[]) "__load();\n" "return 0;\n" "}\n", + f->filename, env.imports, env.typedefs, env.types, env.staticdefs, env.funcs, env.main); |
