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