| 55 | } |
| 56 | |
| 57 | Value TableValue(lua_State* L, int idx, int depth, Allocator& allocator) |
| 58 | { |
| 59 | if (depth > 1024) |
| 60 | luaL_error(L, "nested too depth"); |
| 61 | |
| 62 | if (!lua_checkstack(L, 4)) // requires at least 4 slots in stack: table, key, value, key |
| 63 | luaL_error(L, "stack overflow"); |
| 64 | |
| 65 | return isarray(L, idx) ? ArrayValue(L, idx, depth, allocator) : ObjectValue(L, idx, depth, allocator); |
| 66 | } |
| 67 | |
| 68 | Value ObjectValue(lua_State* L, int idx, int depth, Allocator& allocator) |
| 69 | { |
no test coverage detected