MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / log_contexts

Method log_contexts

tests/framework/src/doctest.cpp:2338–2349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2336 , opt(co) {}
2337
2338 void log_contexts() {
2339 int num_contexts = get_num_active_contexts();
2340 if(num_contexts) {
2341 auto contexts = get_active_contexts();
2342 std::stringstream ss;
2343 for(int i = 0; i < num_contexts; ++i) {
2344 contexts[i]->stringify(&ss);
2345 xml.scopedElement("Info").writeText(ss.str());
2346 ss.str("");
2347 }
2348 }
2349 }
2350
2351 unsigned line(unsigned l) const { return opt.no_line_numbers ? 0 : l; }
2352

Callers

nothing calls this directly

Calls 3

stringifyMethod · 0.80
scopedElementMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected