clean up hook invocation

This commit is contained in:
2024-07-09 23:02:24 -04:00
parent 4e2cf3eb3b
commit cb8684cbf3
5 changed files with 62 additions and 136 deletions

View File

@@ -11,6 +11,14 @@ pub const nu_options: nu.Options = .{
},
};
pub const nu_driver = nu.Window;
pub const nu_modules = .{
App,
nu.ImGui,
nu.Render,
};
pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer _ = gpa.detectLeaks();
@@ -37,9 +45,5 @@ pub fn main() !void {
try App.init(alloc);
defer App.deinit();
try nu.run(nu.Window, .{
App,
nu.ImGui,
nu.Render,
});
try nu.run();
}