| 658 | |
| 659 | |
| 660 | LUA_API void lua_rawgetp (lua_State *L, int idx, const void *p) { |
| 661 | StkId t; |
| 662 | TValue k; |
| 663 | lua_lock(L); |
| 664 | t = index2addr(L, idx); |
| 665 | api_check(L, ttistable(t), "table expected"); |
| 666 | setpvalue(&k, cast(void *, p)); |
| 667 | setobj2s(L, L->top, luaH_get(hvalue(t), &k)); |
| 668 | api_incr_top(L); |
| 669 | lua_unlock(L); |
| 670 | } |
| 671 | |
| 672 | |
| 673 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
nothing calls this directly
no test coverage detected