MCPcopy Create free account
hub / github.com/crawl/crawl / emit_object

Function emit_object

crawl-ref/source/json.cc:1135–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133}
1134
1135static void emit_object(SB *out, const JsonNode *object)
1136{
1137 const JsonNode *member;
1138
1139 sb_putc(out, '{');
1140 json_foreach(member, object)
1141 {
1142 emit_string(out, member->key);
1143 sb_putc(out, ':');
1144 emit_value(out, member);
1145 if (member->next != nullptr)
1146 sb_putc(out, ',');
1147 }
1148 sb_putc(out, '}');
1149}
1150
1151static void emit_object_indented(SB *out, const JsonNode *object, const char *space, int indent_level)
1152{

Callers 1

emit_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected