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