| 911 | |
| 912 | |
| 913 | LUALIB_API void luaL_openlib (lua_State *L, const char *libname, |
| 914 | const luaL_Reg *l, int nup) { |
| 915 | luaL_checkversion(L); |
| 916 | if (libname) { |
| 917 | luaL_pushmodule(L, libname, libsize(l)); /* get/create library table */ |
| 918 | lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ |
| 919 | } |
| 920 | if (l) |
| 921 | luaL_setfuncs(L, l, nup); |
| 922 | else |
| 923 | lua_pop(L, nup); /* remove upvalues */ |
| 924 | } |
| 925 | |
| 926 | #endif |
| 927 | /* }====================================================== */ |
nothing calls this directly
no test coverage detected