Lines Matching refs:modname
810 LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname,
813 lua_getfield(L, -1, modname); /* get _LOADED[modname] */
818 if (luaL_findtable(L, 0, modname, sizehint) != NULL)
819 luaL_error(L, "name conflict for module " LUA_QS, modname);
821 lua_setfield(L, -3, modname); /* _LOADED[modname] = new table */
886 LUALIB_API void luaL_requiref (lua_State *L, const char *modname,
889 lua_pushstring(L, modname); /* argument to open function */
893 lua_setfield(L, -2, modname); /* _LOADED[modname] = module */
897 lua_setglobal(L, modname); /* _G[modname] = module */