| 719 | |
| 720 | |
| 721 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
| 722 | Table *t; |
| 723 | lua_lock(L); |
| 724 | t = luaH_new(L); |
| 725 | sethvalue2s(L, L->top, t); |
| 726 | api_incr_top(L); |
| 727 | if (narray > 0 || nrec > 0) |
| 728 | luaH_resize(L, t, narray, nrec); |
| 729 | luaC_checkGC(L); |
| 730 | lua_unlock(L); |
| 731 | } |
| 732 | |
| 733 | |
| 734 | LUA_API int lua_getmetatable (lua_State *L, int objindex) { |
no test coverage detected