MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetCallstack

Method GetCallstack

Source/Scripting/angelscript/ascontext.cpp:711–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709}
710
711std::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
726void ASContext::DumpCallstack(std::ostream &out) {
727 module.LogGlobalVars();

Callers 11

ItemObjectErrorFunction · 0.80
ASLoadFunction · 0.80
ReadObjectFromIDFunction · 0.80
ASReadCharacterFunction · 0.80
ASReadHotspotFunction · 0.80
ASReadCharacterIDFunction · 0.80
ASReadItemFunction · 0.80
ASReadItemIDFunction · 0.80
ASDoesItemFitInItemFunction · 0.80
ASPrintCallstackFunction · 0.80
ASSendMessageFunction · 0.80

Calls 6

GetCallstackSizeMethod · 0.80
GetDeclarationMethod · 0.80
GetFunctionMethod · 0.45
GetLineNumberMethod · 0.45
GetCorrectedLineMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected