clean up hook invocation
This commit is contained in:
14
src/main.zig
14
src/main.zig
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user