Gamified input-output tables (no GUI).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
361 B

const lj = @import("luajit");
const Error = error{
LuaError,
};
pub fn main() !void {
const L = lj.c.luaL_newstate();
lj.c.luaL_openlibs(L);
if (lj.c.luaL_loadfile(L, "myscript.lua") != 0) return error.LuaError;
if (lj.c.lua_pcall(L, 0, lj.c.LUA_MULTRET, 0) != 0) return error.LuaError;
// That's all floks!
lj.c.lua_close(L);
}