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

Method DumpCallstack

Source/Scripting/angelscript/ascontext.cpp:726–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void ASContext::DumpCallstack(std::ostream &out) {
727 module.LogGlobalVars();
728 asUINT sz = ctx->GetCallstackSize();
729 for (asUINT n = 0; n < sz; n++) {
730 asIScriptFunction *func;
731 const char *scriptSection;
732 int line, column;
733 func = ctx->GetFunction(n);
734 line = ctx->GetLineNumber(n, &column, &scriptSection);
735 LineFile lf = module.GetCorrectedLine(line);
736
737 out << lf.file << " line " << lf.line_number << " \"" << func->GetDeclaration() << "\"\n";
738 }
739}
740
741void ASContext::LogCallstack() {
742}

Callers 1

DumpAngelscriptStatesFunction · 0.80

Calls 6

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

Tested by

no test coverage detected