added process spawning

This commit is contained in:
Harrison DiAmbrosio 2025-10-24 23:43:11 -04:00
parent 23ef0049f7
commit 2e2cfeebae
5 changed files with 47 additions and 249 deletions

View file

@ -23,9 +23,10 @@ pub fn callback(self: *const Keymap) void {
const t = Lua.state.rawGetIndex(zlua.registry_index, self.lua_ref_idx);
if (t != zlua.LuaType.function) {
std.log.err("Failed to call keybind, it doesn't have a callback.", .{});
Lua.state.pop(1);
return;
}
Lua.state.pushValue(1);
Lua.state.call(.{ .args = 0, .results = 0 });
Lua.state.pop(-1);
}