| 403 | } |
| 404 | |
| 405 | void lua_rawsetp(lua_State* L, int idx, const void* p) |
| 406 | { |
| 407 | if (luaVersion == LuaVersion::LUA_51 || luaVersion == LuaVersion::LUA_JIT) |
| 408 | { |
| 409 | if (idx < 0) |
| 410 | { |
| 411 | idx += lua_gettop(L) + 1; |
| 412 | } |
| 413 | lua_pushlightuserdata(L, (void*)p); |
| 414 | lua_insert(L, -2); |
| 415 | lua_rawset(L, idx); |
| 416 | } |
| 417 | else |
| 418 | { |
| 419 | return e_lua_rawsetp(L, idx, p); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | void lua_insert(lua_State* L, int idx) |
| 424 | { |
nothing calls this directly
no test coverage detected