mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 07:09:13 +02:00
fix(LuaParser): open only needed libs
This commit is contained in:
parent
a5e84a44ec
commit
9dac5c8700
1 changed files with 5 additions and 1 deletions
|
|
@ -158,7 +158,11 @@ pub fn LuaParser(comptime Struct: type) type {
|
|||
var lua: *Lua = try .init(allocator);
|
||||
defer lua.deinit();
|
||||
|
||||
lua.openLibs();
|
||||
lua.openBase();
|
||||
lua.openBit();
|
||||
lua.openMath();
|
||||
lua.openString();
|
||||
lua.openTable();
|
||||
|
||||
// convert to sentinel terminated slice
|
||||
const spath: [:0]const u8 = try allocator.dupeSentinel(u8, path, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue