| 668 | |
| 669 | |
| 670 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
| 671 | Table *t; |
| 672 | lua_lock(L); |
| 673 | luaC_checkGC(L); |
| 674 | t = luaH_new(L); |
| 675 | sethvalue(L, L->top, t); |
| 676 | api_incr_top(L); |
| 677 | if (narray > 0 || nrec > 0) |
| 678 | luaH_resize(L, t, narray, nrec); |
| 679 | lua_unlock(L); |
| 680 | } |
| 681 | |
| 682 | |
| 683 | LUA_API int lua_getmetatable (lua_State *L, int objindex) { |
no test coverage detected