MCPcopy Create free account
hub / github.com/Tencent/UnLua / TableValue

Function TableValue

Plugins/UnLuaExtensions/LuaRapidjson/Source/src/values.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

toValueFunction · 0.85

Calls 5

luaL_errorFunction · 0.85
lua_checkstackFunction · 0.85
isarrayFunction · 0.85
ArrayValueFunction · 0.85
ObjectValueFunction · 0.85

Tested by

no test coverage detected