Skip to content

Commit

Permalink
Also show the first line when using --pycode-extra
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Nov 30, 2023
1 parent 74b8f7e commit 795ad18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pycdas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void output_object(PycRef<PycObject> obj, PycModule* mod, int indent,
bc_disasm(pyc_output, codeObj, mod, indent + 2, flags);

if (mod->verCompare(1, 5) >= 0 && (flags & Pyc::DISASM_PYCODE_VERBOSE) != 0) {
iprintf(pyc_output, indent + 1, "First Line: %d\n", codeObj->firstLine());
iputs(pyc_output, indent + 1, "[Line Number Table]\n");
output_object(codeObj->lnTable().cast<PycObject>(), mod, indent + 2, flags, pyc_output);
}
Expand Down

0 comments on commit 795ad18

Please sign in to comment.