Skip to content

Commit

Permalink
add ctx to cppia-stackframe; fix sourcelocation's fullName
Browse files Browse the repository at this point in the history
  • Loading branch information
dazKind committed Sep 8, 2024
1 parent 1377502 commit b722724
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hx/TelemetryTracy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ void hx::tlmSampleEnter(hx::Telemetry* telemetry, hx::StackFrame* frame)
frame->lineNumber,
frame->position->fileName,
strlen(frame->position->fileName),
frame->position->fileName,
strlen(frame->position->fileName),
frame->position->fullName,
strlen(frame->position->fullName),
0);

// Hxcpp callstack depth starts at 0, but tracy expects it to start at 1.
Expand Down
1 change: 1 addition & 0 deletions src/hx/cppia/Cppia.h
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ class CppiaClassInfo
ctx = inCtx;
frame = (hx::StackFrame *)ctx->stackAlloc(sizeof(hx::StackFrame));
frame->position = inPosition;
frame->ctx = ctx;
#ifdef HXCPP_DEBUGGER
frame->variables = 0;
frame->catchables = 0;
Expand Down

0 comments on commit b722724

Please sign in to comment.