| 296 | } |
| 297 | |
| 298 | void BacktraceResult::fmt_to_str(std::string& dst) { |
| 299 | if (stack.size() > 0) { |
| 300 | dst.append("\nbacktrace:\n"); |
| 301 | for (auto&& i : stack) { |
| 302 | dst.append(i); |
| 303 | dst.append("\n"); |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | void debug::set_fork_cuda_warning_flag(int flag) { |
| 309 | #if MGB_CUDA |
no test coverage detected