MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / add_attrib

Method add_attrib

Source/astcenc_diagnostic_trace.cpp:129–151  ·  view source on GitHub ↗

See header for documentation. */

Source from the content-addressed store, hash-verified

127
128/* See header for documentation. */
129void TraceNode::add_attrib(
130 std::string type,
131 std::string key,
132 std::string value
133) {
134 (void)type;
135
136 size_t depth = g_TraceLog->get_depth();
137 size_t indent = (depth * 2) * g_trace_indent;
138 auto& out = g_TraceLog->m_file;
139 bool comma = m_attrib_count;
140 m_attrib_count++;
141
142 if (comma)
143 {
144 out << ',';
145 }
146
147 out << '\n';
148 out << std::string(indent, ' ') << "[ "
149 << "\"" << key << "\", "
150 << value << " ]";
151}
152
153/* See header for documentation. */
154TraceNode::~TraceNode()

Callers 1

trace_add_dataFunction · 0.80

Calls 1

get_depthMethod · 0.80

Tested by

no test coverage detected