fix: prefix openLibs with aux

This is technically an auxiliary library based on its naming convention
This commit is contained in:
Nathan Craddock 2022-05-31 21:27:14 -06:00
parent 72b461992c
commit e49441220a
No known key found for this signature in database
GPG Key ID: ABE41A31B52E9DA7

View File

@ -130,7 +130,7 @@ const Lua = struct {
}
/// Open all standard libraries
pub fn openLibs(lua: *Lua) void {
pub fn auxOpenLibs(lua: *Lua) void {
c.luaL_openlibs(lua.state);
}
@ -230,7 +230,7 @@ test "standard library loading" {
{
var lua = try Lua.init(testing.allocator);
defer lua.deinit();
lua.openLibs();
lua.auxOpenLibs();
}
// open all standard libraries with individual functions