MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / jsonMergeQueryDef

Function jsonMergeQueryDef

source/core/StarJson.hpp:359–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357
358template <typename... T>
359Json jsonMergeQueryDef(String const& key, Json def, Json const& first, T const&... rest) {
360 if (auto v = jsonMergeQueryImpl(key, first, rest...))
361 return v;
362 return def;
363}
364
365// Compares two JSON values to see if the second is a subset of the first.
366// For objects, each key in the second object must exist in the first

Callers 3

configValueMethod · 0.85
instanceValueMethod · 0.85
configValueMethod · 0.85

Calls 1

jsonMergeQueryImplFunction · 0.85

Tested by

no test coverage detected