| author | |
| committer | |
| log | 9222d201d76d5b134d9014480520f649140563c3 |
| tree | 4e575c9183aab460a9c8a690c1a0b6d95e53af51 |
| parent | c4776d66af3cec54a6f87337da714d388aa866da |
Provided for debugging/testing purposes; unused by the compiler.1 files changed, 9 insertions(+), 0 deletions(-)
src/fmt.zig+9| ... | ... | @@ -394,3 +394,12 @@ fn fmtPathFile( |
| 394 | 394 | try stdout.print("{s}\n", .{file_path}); |
| 395 | 395 | } |
| 396 | 396 | } |
| 397 | ||
| 398 | /// Provided for debugging/testing purposes; unused by the compiler. | |
| 399 | pub fn main() !void { | |
| 400 | const gpa = std.heap.smp_allocator; | |
| 401 | var arena_instance = std.heap.ArenaAllocator.init(gpa); | |
| 402 | const arena = arena_instance.allocator(); | |
| 403 | const args = try process.argsAlloc(arena); | |
| 404 | return run(gpa, arena, args[1..]); | |
| 405 | } |