mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
20 lines
469 B
Zig
20 lines
469 B
Zig
const std = @import("std");
|
|
const glfw = @import("glfw");
|
|
|
|
const App = @import("App.zig");
|
|
|
|
pub fn main() !void {
|
|
var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){};
|
|
const gpa = general_purpose_allocator.allocator();
|
|
defer _ = general_purpose_allocator.deinit();
|
|
|
|
// List our fonts
|
|
try glfw.init(.{});
|
|
defer glfw.terminate();
|
|
|
|
// Run our app
|
|
var app = try App.init(gpa);
|
|
defer app.deinit();
|
|
try app.run();
|
|
}
|