| 709 | } |
| 710 | |
| 711 | std::string ASContext::GetCallstack() { |
| 712 | std::ostringstream oss; |
| 713 | // Show the call stack |
| 714 | for (asUINT n = 0; n < ctx->GetCallstackSize(); n++) { |
| 715 | asIScriptFunction *func; |
| 716 | const char *scriptSection; |
| 717 | int line, column; |
| 718 | func = ctx->GetFunction(n); |
| 719 | line = ctx->GetLineNumber(n, &column, &scriptSection); |
| 720 | LineFile lf = module.GetCorrectedLine(line); |
| 721 | oss << lf.file << " line " << lf.line_number << " \"" << func->GetDeclaration() << "\"\n"; |
| 722 | } |
| 723 | return oss.str(); |
| 724 | } |
| 725 | |
| 726 | void ASContext::DumpCallstack(std::ostream &out) { |
| 727 | module.LogGlobalVars(); |
no test coverage detected