| 63 | |
| 64 | |
| 65 | LUALIB_API void luaL_openlibs(lua_State *L) { |
| 66 | const luaL_Reg *lib; |
| 67 | /* "require" functions from 'loadedlibs' and set results to global table */ |
| 68 | for (lib = loadedlibs; lib->func; lib++) { |
| 69 | luaL_requiref(L, lib->name, lib->func, 1); |
| 70 | lua_pop(L, 1); /* remove lib */ |
| 71 | } |
| 72 | } |
| 73 |
no test coverage detected