| 386 | } |
| 387 | |
| 388 | int lua_rawgetp(lua_State* L, int idx, const void* p) |
| 389 | { |
| 390 | if (luaVersion == LuaVersion::LUA_51 || luaVersion == LuaVersion::LUA_JIT) |
| 391 | { |
| 392 | if (idx < 0) |
| 393 | { |
| 394 | idx += lua_gettop(L) + 1; |
| 395 | } |
| 396 | lua_pushlightuserdata(L, (void*)p); |
| 397 | return lua_rawget(L, idx); |
| 398 | } |
| 399 | else |
| 400 | { |
| 401 | return e_lua_rawgetp(L, idx, p); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | void lua_rawsetp(lua_State* L, int idx, const void* p) |
| 406 | { |
nothing calls this directly
no test coverage detected