| 12495 | |
| 12496 | |
| 12497 | LUALIB_API void luaL_openlibs (lua_State *L) { |
| 12498 | const luaL_Reg *lib = lualibs; |
| 12499 | for (; lib->func; lib++) { |
| 12500 | lua_pushcfunction(L, lib->func); |
| 12501 | lua_pushstring(L, lib->name); |
| 12502 | lua_call(L, 1, 0); |
| 12503 | } |
| 12504 | } |
| 12505 | |
| 12506 | /* |
| 12507 | ** $Id: lmathlib.c,v 1.67.1.1 2007/12/27 13:02:25 roberto Exp $ |
no test coverage detected