| 760 | |
| 761 | |
| 762 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
| 763 | Table *t; |
| 764 | lua_lock(L); |
| 765 | t = luaH_new(L); |
| 766 | sethvalue2s(L, L->top.p, t); |
| 767 | api_incr_top(L); |
| 768 | if (narray > 0 || nrec > 0) |
| 769 | luaH_resize(L, t, narray, nrec); |
| 770 | luaC_checkGC(L); |
| 771 | lua_unlock(L); |
| 772 | } |
| 773 | |
| 774 | |
| 775 | LUA_API int lua_getmetatable (lua_State *L, int objindex) { |
no test coverage detected