| 157 | #endif |
| 158 | |
| 159 | LUA_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 | |
| 169 | LUA_API void xlua_rawgeti (lua_State *L, int idx, int64_t n) { |
| 170 | lua_rawgeti(L, idx, (lua_Integer)n); |
nothing calls this directly
no test coverage detected