MCPcopy Create free account
hub / github.com/Tencent/xLua / xlua_getloaders

Function xlua_getloaders

WebGLPlugins/xlua.c:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157#endif
158
159LUA_API void xlua_getloaders (lua_State *L) {
160 lua_getglobal(L, "package");
161#if LUA_VERSION_NUM == 501
162 lua_getfield(L, -1, "loaders");
163#else
164 lua_getfield(L, -1, "searchers");
165#endif
166 lua_remove(L, -2);
167}
168
169LUA_API void xlua_rawgeti (lua_State *L, int idx, int64_t n) {
170 lua_rawgeti(L, idx, (lua_Integer)n);

Callers

nothing calls this directly

Calls 3

lua_getfieldFunction · 0.85
lua_removeFunction · 0.85
lua_getglobalFunction · 0.70

Tested by

no test coverage detected