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

Method GetCallFile

Source/Scripting/angelscript/ascontext.cpp:797–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797std::pair<Path, int> ASContext::GetCallFile() {
798 const char *scriptSection;
799 int line, column;
800 line = ctx->GetLineNumber(0, &column, &scriptSection);
801 LineFile lf = module.GetCorrectedLine(line);
802
803 return std::pair<Path, int>(lf.file, lf.line_number);
804}
805
806std::string ASContext::GetASFunctionNameFromMPState(uint32_t state) {
807 if (HasFunction(mpCallBacks[state])) {

Callers 1

ASLogFunction · 0.80

Calls 2

GetLineNumberMethod · 0.45
GetCorrectedLineMethod · 0.45

Tested by

no test coverage detected