| 754 | |
| 755 | |
| 756 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
| 757 | Table *t; |
| 758 | lua_lock(L); |
| 759 | t = luaH_new(L); |
| 760 | sethvalue2s(L, L->top, t); |
| 761 | api_incr_top(L); |
| 762 | if (narray > 0 || nrec > 0) |
| 763 | luaH_resize(L, t, narray, nrec); |
| 764 | luaC_checkGC(L); |
| 765 | lua_unlock(L); |
| 766 | } |
| 767 | |
| 768 | |
| 769 | LUA_API int lua_getmetatable (lua_State *L, int objindex) { |
no test coverage detected