mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Address comments
This commit is contained in:
parent
e8e10f1419
commit
d8c6fdf711
3 changed files with 26 additions and 16 deletions
12
bytecode.cpp
12
bytecode.cpp
|
|
@ -604,14 +604,14 @@ void bc_disasm(std::ostream& pyc_output, PycRef<PycCode> code, PycModule* mod,
|
|||
void bc_exceptiontable(std::ostream& pyc_output, PycRef<PycCode> code,
|
||||
int indent)
|
||||
{
|
||||
for (auto tuple: code->exceptTableEntries()) {
|
||||
for (const auto& entry : code->exceptionTableEntries()) {
|
||||
|
||||
for (int i=0; i<indent; i++)
|
||||
pyc_output << " ";
|
||||
|
||||
pyc_output << std::get<0>(tuple) << " to " << std::get<1>(tuple);
|
||||
pyc_output << " -> " << std::get<2>(tuple) << " ";
|
||||
pyc_output << "[" << std::get<3>(tuple) << "] " << (std::get<4>(tuple) ? "lasti": "");
|
||||
pyc_output << "\n";
|
||||
pyc_output << entry.start_offset << " to " << entry.end_offset
|
||||
<< " -> " << entry.target << " [" << entry.stack_depth
|
||||
<< "] " << (entry.push_lasti ? "lasti": "")
|
||||
<< "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue