| 790 | |
| 791 | |
| 792 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
| 793 | Table *t; |
| 794 | lua_lock(L); |
| 795 | t = luaH_new(L); |
| 796 | sethvalue2s(L, L->top.p, t); |
| 797 | api_incr_top(L); |
| 798 | if (narray > 0 || nrec > 0) |
| 799 | luaH_resize(L, t, cast_uint(narray), cast_uint(nrec)); |
| 800 | luaC_checkGC(L); |
| 801 | lua_unlock(L); |
| 802 | } |
| 803 | |
| 804 | |
| 805 | LUA_API int lua_getmetatable (lua_State *L, int objindex) { |
no test coverage detected