MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / StackWalker

Method StackWalker

src/crash_writer.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38public:
39 StackWalker(std::string const& cause)
40 : fp(crashlog_path, std::ios::app)
41 {
42 if (!fp.good()) return;
43
44 fp << util::strftime("--- %y-%m-%d %H:%M:%S ------------------\n");
45 fp << agi::format("VER - %s\n", GetAegisubLongVersionString());
46 fp << agi::format("FTL - Beginning stack dump for \"%s\": \n", cause);
47 }
48
49 ~StackWalker() {
50 if (!fp.good()) return;

Callers

nothing calls this directly

Calls 3

strftimeFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected