diff options
| author | Baitinq <[email protected]> | 2025-03-21 20:08:29 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-03-21 20:10:07 +0100 |
| commit | acb5f9c8c79f42bcb01759d2f5f70cafbfb30956 (patch) | |
| tree | c52fd5e0fa0ca71bc42b9029475b5a7d39c6df69 /src/main.zig | |
| parent | Examples: Add example of linking external symbol (diff) | |
| download | interpreter-acb5f9c8c79f42bcb01759d2f5f70cafbfb30956.tar.gz interpreter-acb5f9c8c79f42bcb01759d2f5f70cafbfb30956.tar.bz2 interpreter-acb5f9c8c79f42bcb01759d2f5f70cafbfb30956.zip | |
Misc: Improve error handling
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig index 43ac440..cb32838 100644 --- a/src/main.zig +++ b/src/main.zig @@ -49,9 +49,7 @@ pub fn main() !void { ); } else { const source_codegen = try codegen.CodeGen.init(arena.allocator()); - defer source_codegen.deinit() catch |err| { - std.debug.print("ERROR GENERATING CODE {any}\n", .{err}); - }; + defer source_codegen.deinit(); try process_buf( buf, allocator, @@ -59,6 +57,7 @@ pub fn main() !void { source_evaluator, source_codegen, ); + source_codegen.compile(); } } } |