LUALIB_API void lua_baselibopen (lua_State *L) { luaL_openl(L, base_funcs); lua_pushstring(L, LUA_VERSION); lua_setglobal(L, "_VERSION"); deprecated_funcs(L); }
/* ** Open math library */ LUALIB_API void lua_mathlibopen (lua_State *L) { luaL_openl(L, mathlib); lua_pushcfunction(L, math_pow); lua_settagmethod(L, LUA_TNUMBER, "pow"); lua_pushnumber(L, PI); lua_setglobal(L, "PI"); }
LUALIB_API void lua_iolibopen (lua_State *L) { luaL_openl(L, iolib); openwithcontrol(L); }
/* ** Open string library */ LUALIB_API void lua_strlibopen (lua_State *L) { luaL_openl(L, strlib); }
LUALIB_API void lua_dblibopen (lua_State *L) { luaL_openl(L, dblib); }