mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
w merge by me <3
This commit is contained in:
commit
b3b83fd287
11 changed files with 220 additions and 45 deletions
|
|
@ -9,6 +9,7 @@ const Fs = @import("fs.zig");
|
|||
const Input = @import("input.zig");
|
||||
const Api = @import("api.zig");
|
||||
const View = @import("view.zig");
|
||||
const Hook = @import("hook.zig");
|
||||
|
||||
const gpa = std.heap.c_allocator;
|
||||
|
||||
|
|
@ -65,6 +66,11 @@ pub fn init(self: *Lua) !void {
|
|||
self.state.newLib(input_funcs);
|
||||
self.state.setField(-2, "input");
|
||||
}
|
||||
{
|
||||
const hook_funcs = zlua.fnRegsFromType(Hook);
|
||||
self.state.newLib(hook_funcs);
|
||||
self.state.setField(-2, "hook");
|
||||
}
|
||||
{
|
||||
const api_funcs = zlua.fnRegsFromType(Api);
|
||||
self.state.newLib(api_funcs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue