| 37 | |
| 38 | public: |
| 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; |
nothing calls this directly
no test coverage detected