MCPcopy Create free account
hub / github.com/git/git / assert_is_terminated

Function assert_is_terminated

json-writer.c:145–150  ·  view source on GitHub ↗

* Assert that the given JSON object or JSON array has been properly * terminated. (Has closing bracket.) */

Source from the content-addressed store, hash-verified

143 * terminated. (Has closing bracket.)
144 */
145static void assert_is_terminated(const struct json_writer *jw)
146{
147 if (jw->open_stack.len)
148 BUG("json-writer: object: missing jw_end(): '%s'",
149 jw->json.buf);
150}
151
152void jw_object_begin(struct json_writer *jw, int pretty)
153{

Callers 2

jw_object_sub_jwFunction · 0.85
jw_array_sub_jwFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected