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

Function emit_array

crawl-ref/source/json.cc:1095–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093}
1094
1095static void emit_array(SB *out, const JsonNode *array)
1096{
1097 const JsonNode *element;
1098
1099 sb_putc(out, '[');
1100 json_foreach(element, array)
1101 {
1102 emit_value(out, element);
1103 if (element->next != nullptr)
1104 sb_putc(out, ',');
1105 }
1106 sb_putc(out, ']');
1107}
1108
1109static void emit_array_indented(SB *out, const JsonNode *array, const char *space, int indent_level)
1110{

Callers 1

emit_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected