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

Function DebugLineCallback

Source/Scripting/angelscript/ascontext.cpp:790–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788char debug_line_info[DEBUG_LINE_INFO_SIZE];
789
790void DebugLineCallback(asIScriptContext *ctx, ASModule *asmod) {
791 const char *scriptSection;
792 int line = ctx->GetLineNumber(0, 0, &scriptSection);
793 LineFile lf = asmod->GetCorrectedLine(line);
794 FormatString(debug_line_info, DEBUG_LINE_INFO_SIZE, "Executing line %d in %s\n", lf.line_number, lf.file.GetFullPath());
795}
796
797std::pair<Path, int> ASContext::GetCallFile() {
798 const char *scriptSection;

Callers

nothing calls this directly

Calls 4

FormatStringFunction · 0.85
GetFullPathMethod · 0.80
GetLineNumberMethod · 0.45
GetCorrectedLineMethod · 0.45

Tested by

no test coverage detected