| 681 | |
| 682 | |
| 683 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
| 684 | Table *t; |
| 685 | lua_lock(L); |
| 686 | t = luaH_new(L); |
| 687 | sethvalue(L, L->top, t); |
| 688 | api_incr_top(L); |
| 689 | if (narray > 0 || nrec > 0) |
| 690 | luaH_resize(L, t, narray, nrec); |
| 691 | luaC_checkGC(L); |
| 692 | lua_unlock(L); |
| 693 | } |
| 694 | |
| 695 | |
| 696 | LUA_API int lua_getmetatable (lua_State *L, int objindex) { |
no test coverage detected