mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-19 15:29:46 +02:00
Change to luaL_newlib().
This commit is contained in:
@ -591,12 +591,10 @@ LSEC_API int luaopen_ssl_x509(lua_State *L)
|
||||
luaL_newmetatable(L, "SSL:Certificate");
|
||||
luaL_setfuncs(L, meta, 0);
|
||||
|
||||
lua_newtable(L);
|
||||
luaL_setfuncs(L, methods, 0);
|
||||
luaL_newlib(L, methods);
|
||||
lua_setfield(L, -2, "__index");
|
||||
|
||||
lua_newtable(L);
|
||||
luaL_setfuncs(L, funcs, 0);
|
||||
luaL_newlib(L, funcs);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user