MCPcopy Create free account
hub / github.com/ddnet/ddnet / json_array_get

Function json_array_get

src/engine/shared/json.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19const struct _json_value *json_array_get(const json_value *pArray, int Index)
20{
21 if(pArray->type != json_array || Index >= (int)pArray->u.array.length)
22 return &json_value_none;
23
24 return pArray->u.array.values[Index];
25}
26
27int json_array_length(const json_value *pArray)
28{

Callers 1

ParseUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected